Author: cyrus
Date: 2014-06-18 12:04:02 +0200 (Wed, 18 Jun 2014)
New Revision: 41241

Modified:
   trunk/package/network/services/dnsmasq/Makefile
Log:
dnsmasq: use COPTS for compile time options

As documented in config.h.
Doing otherwise will break dnsmasq's pkg-wrapper script to find its
libs to link to.

Signed-off-by: Andre Heider <[email protected]>

Modified: trunk/package/network/services/dnsmasq/Makefile
===================================================================
--- trunk/package/network/services/dnsmasq/Makefile     2014-06-17 21:04:45 UTC 
(rev 41240)
+++ trunk/package/network/services/dnsmasq/Makefile     2014-06-18 10:04:02 UTC 
(rev 41241)
@@ -61,18 +61,19 @@
 
 Package/dnsmasq-dhcpv6/conffiles = $(Package/dnsmasq/conffiles)
 
-TARGET_CFLAGS += \
-       -ffunction-sections -fdata-sections \
-       $(if $(CONFIG_IPV6),,-DNO_IPV6) -DNO_IPSET -DNO_AUTH
+TARGET_CFLAGS += -ffunction-sections -fdata-sections
 
+COPTS = $(if $(CONFIG_IPV6),,-DNO_IPV6) -DNO_IPSET -DNO_AUTH
+
 ifeq ($(BUILD_VARIANT),nodhcpv6)
-  TARGET_CFLAGS += -DNO_DHCP6
+       COPTS += -DNO_DHCP6
 endif
 
 MAKE_FLAGS := \
        $(TARGET_CONFIGURE_OPTS) \
        CFLAGS="$(TARGET_CFLAGS)" \
        LDFLAGS="-Wl,--gc-sections" \
+       COPTS="$(COPTS)" \
        PREFIX="/usr"
 
 define Package/dnsmasq/install
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to