From: Nicolas Thill Date: Mon, 16 Mar 2015 12:32:22 +0000 (+0000) Subject: packages: more (e)glibc fixes after r44701 X-Git-Tag: reboot~3892 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=81ff0511df3466d7dce5af6f33acbbe4ec89f796;p=oweals%2Fopenwrt.git packages: more (e)glibc fixes after r44701 _GNU_SOURCE has been declared "deprecated" in favor of _DEFAULT_SOURCE in glibc Signed-off-by: Nicolas Thill SVN-Revision: 44843 --- diff --git a/package/network/services/uhttpd/Makefile b/package/network/services/uhttpd/Makefile index 7c0989de1a..f4de987e65 100644 --- a/package/network/services/uhttpd/Makefile +++ b/package/network/services/uhttpd/Makefile @@ -107,6 +107,10 @@ define Package/uhttpd/conffiles /etc/uhttpd.key endef +ifneq ($(CONFIG_USE_GLIBC),) + TARGET_CFLAGS += -D_DEFAULT_SOURCE +endif + TARGET_LDFLAGS += -lcrypt CMAKE_OPTIONS = -DTLS_SUPPORT=on diff --git a/package/utils/ugps/Makefile b/package/utils/ugps/Makefile index c1bc7cdd01..3662125c3a 100644 --- a/package/utils/ugps/Makefile +++ b/package/utils/ugps/Makefile @@ -32,6 +32,10 @@ endef TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include +ifneq ($(CONFIG_USE_GLIBC),) + TARGET_CFLAGS += -D_DEFAULT_SOURCE +endif + define Package/ugps/install $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config $(INSTALL_BIN) $(PKG_BUILD_DIR)/ugps $(1)/usr/sbin/