summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-08-23 01:05:40 -0400
committerDave Reisner <dreisner@archlinux.org>2012-08-23 01:07:08 -0400
commit51bf86963791d3ada284f001e5f17bea6f05a27d (patch)
tree02f8454337b5ad3dc110cb8699f8aca879853661
parenta7e3d397bad337d59519fa69eafee7ca1d83d551 (diff)
downloadfcgiwrap-51bf86963791d3ada284f001e5f17bea6f05a27d.tar.xz
fcgiwrap-51bf86963791d3ada284f001e5f17bea6f05a27d.zip
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.
-rw-r--r--Makefile.in4
1 files changed, 3 insertions, 1 deletions
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: