nss: Fix compilation with uClibc-ng

_GNU_SOURCE is needed for fdopen, sigaction, and probably more.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit 7940093fd0)
This commit is contained in:
Rosen Penev 2019-12-20 13:10:43 -08:00
parent bdca0e7bf8
commit c7e1106d18
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B
1 changed files with 2 additions and 1 deletions

View File

@ -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