aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2012-08-23 01:05:40 -0400
committerFurkan Sahin <furkan-dev@proton.me>2012-08-23 01:05:40 -0400
commit1926211300280e94560a52a62d2fe0459cd4a571 (patch)
tree02f8454337b5ad3dc110cb8699f8aca879853661
parent5e1ef6b183c81895c0ae1f441dfdd18b470438ef (diff)
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: