From: Rosen Penev Date: Fri, 20 Dec 2019 21:10:43 +0000 (-0800) Subject: nss: Fix compilation with uClibc-ng X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=7940093fd081ad169755d15da36aea60e8edf4f0;p=openwrt-packages.git nss: Fix compilation with uClibc-ng _GNU_SOURCE is needed for fdopen, sigaction, and probably more. Signed-off-by: Rosen Penev --- diff --git a/libs/nss/Makefile b/libs/nss/Makefile index 16d77ba57..cf3aff534 100644 --- a/libs/nss/Makefile +++ b/libs/nss/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=nss PKG_VERSION:=3.48 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:= \ @@ -62,6 +62,7 @@ ifeq ($(CONFIG_CPU_TYPE),"xscale") TARGET_CFLAGS+= -mfloat-abi=softfp endif +TARGET_CFLAGS += -D_GNU_SOURCE TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed export CROSS_COMPILE=1