From 51bf86963791d3ada284f001e5f17bea6f05a27d Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Thu, 23 Aug 2012 01:05:40 -0400 Subject: simplify build rule for fcgiwrap Add flags and libraries to the respective environment vars and let make figure out the order on its own. This provides support for unmentioned vars such as LDFLAGS implicitly, as the compilation rule isn't explicitly defined. --- Makefile.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 647d98b..40ccf5d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -15,8 +15,10 @@ ifneq ("@systemdsystemunitdir@", "") install -m 644 systemd/fcgiwrap.service $(DESTDIR)@systemdsystemunitdir@ endif +LDLIBS = -lfcgi @systemd_LIBS@ +CFLAGS = @AM_CFLAGS@ + fcgiwrap: fcgiwrap.c - @CC@ @AM_CFLAGS@ fcgiwrap.c -o fcgiwrap -lfcgi @systemd_LIBS@ @LDFLAGS@ #>+ 21 clean: -- cgit v1.2.3