From 7c467208390800c2dc782c42fd5f49228d1c9eee Mon Sep 17 00:00:00 2001 From: Andrew Hills Date: Thu, 4 Jun 2015 15:40:50 -0400 Subject: [PATCH] Force LDFLAGS to the end --- fortune/Makefile | 1 + strfile/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/fortune/Makefile b/fortune/Makefile index 9e13f8b..3ce7038 100644 --- a/fortune/Makefile +++ b/fortune/Makefile @@ -3,6 +3,7 @@ CFLAGS+= -I../strfile -DFORTDIR=\"$(FORTDIR)\" LDFLAGS+= -lbsd fortune : fortune.c + $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) install : mkdir -p $(DESTDIR)$(PREFIX)/bin diff --git a/strfile/Makefile b/strfile/Makefile index 6511a67..307bd34 100644 --- a/strfile/Makefile +++ b/strfile/Makefile @@ -1,6 +1,7 @@ LDFLAGS+= -lbsd strfile : strfile.c + $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) install : mkdir -p $(DESTDIR)$(PREFIX)/bin