civetweb: use TARGET_CONFIGURE_OPTS
authorPeter Korsgaard <peter@korsgaard.com>
Mon, 27 Apr 2015 20:31:00 +0000 (22:31 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 27 Apr 2015 20:35:57 +0000 (22:35 +0200)
Instead of explicitly handling CC/LD/CFLAGS. No functional change, but it is
cleaner like this.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/civetweb/civetweb.mk

index 496eef85da0b12768fff544790c870c121ae1e14..d29765b87d24acecb58a2959fcc83c3341d7a87c 100644 (file)
@@ -10,7 +10,7 @@ CIVETWEB_LICENSE = MIT
 CIVETWEB_LICENSE_FILES = LICENSE.md
 
 CIVETWEB_CONF_OPTS = TARGET_OS=LINUX WITH_IPV6=1
-CIVETWEB_COPT = $(TARGET_CFLAGS) -DHAVE_POSIX_FALLOCATE=0
+CIVETWEB_COPT = -DHAVE_POSIX_FALLOCATE=0
 CIVETWEB_LIBS = -lpthread -lm
 CIVETWEB_SYSCONFDIR = /etc
 CIVETWEB_HTMLDIR = /var/www
@@ -29,13 +29,13 @@ CIVETWEB_COPT += -DNO_SSL
 endif
 
 define CIVETWEB_BUILD_CMDS
-       $(MAKE) CC="$(TARGET_CC)" LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D) build \
+       $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) build \
                $(CIVETWEB_CONF_OPTS) \
                COPT="$(CIVETWEB_COPT)" LIBS="$(CIVETWEB_LIBS)"
 endef
 
 define CIVETWEB_INSTALL_TARGET_CMDS
-       $(MAKE) CC="$(TARGET_CC)" -C $(@D) install \
+       $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) install \
                DOCUMENT_ROOT="$(CIVETWEB_HTMLDIR)" \
                CONFIG_FILE2="$(CIVETWEB_SYSCONFDIR)/civetweb.conf" \
                HTMLDIR="$(TARGET_DIR)$(CIVETWEB_HTMLDIR)" \