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 <a.heider@gmail.com>

SVN-Revision: 41241
master
Steven Barth 10 years ago
parent 5e6024d526
commit 6dbafaa15d
  1. 9
      package/network/services/dnsmasq/Makefile

@ -61,18 +61,19 @@ endef
Package/dnsmasq-dhcpv6/conffiles = $(Package/dnsmasq/conffiles) Package/dnsmasq-dhcpv6/conffiles = $(Package/dnsmasq/conffiles)
TARGET_CFLAGS += \ TARGET_CFLAGS += -ffunction-sections -fdata-sections
-ffunction-sections -fdata-sections \
$(if $(CONFIG_IPV6),,-DNO_IPV6) -DNO_IPSET -DNO_AUTH COPTS = $(if $(CONFIG_IPV6),,-DNO_IPV6) -DNO_IPSET -DNO_AUTH
ifeq ($(BUILD_VARIANT),nodhcpv6) ifeq ($(BUILD_VARIANT),nodhcpv6)
TARGET_CFLAGS += -DNO_DHCP6 COPTS += -DNO_DHCP6
endif endif
MAKE_FLAGS := \ MAKE_FLAGS := \
$(TARGET_CONFIGURE_OPTS) \ $(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \ CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="-Wl,--gc-sections" \ LDFLAGS="-Wl,--gc-sections" \
COPTS="$(COPTS)" \
PREFIX="/usr" PREFIX="/usr"
define Package/dnsmasq/install define Package/dnsmasq/install

Loading…
Cancel
Save