civetweb: use TARGET_LDFLAGS
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 24 Sep 2013 12:07:07 +0000 (14:07 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 24 Sep 2013 12:11:54 +0000 (14:11 +0200)
We should use our LDFLAGS when building as well. At the same time, drop the
unused CIVETWEB_LDFLAGS.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/civetweb/civetweb.mk

index e34da064c652d2948347f10f93d8cfaf7a71b61e..e46856341f7203d9e3472d20604f3ccabcefc8a2 100644 (file)
@@ -11,7 +11,6 @@ CIVETWEB_LICENSE_FILES = LICENSE.md
 
 CIVETWEB_CONF_OPT = TARGET_OS=LINUX
 CIVETWEB_COPT = $(TARGET_CFLAGS) -DHAVE_POSIX_FALLOCATE=0
-CIVETWEB_LDFLAGS = $(TARGET_LDFLAGS)
 CIVETWEB_SYSCONFDIR = /etc
 CIVETWEB_HTMLDIR = /var/www
 
@@ -35,7 +34,7 @@ else
 endif
 
 define CIVETWEB_BUILD_CMDS
-       $(MAKE) CC="$(TARGET_CC)" -C $(@D) build \
+       $(MAKE) CC="$(TARGET_CC)" LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D) build \
                $(CIVETWEB_CONF_OPT) \
                COPT="$(CIVETWEB_COPT)"
 endef