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>
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
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