With eglibc needs to define -D_GNU_SOURCE in cflags to avoid following error:
[packages.git] / libs / re / Makefile
index c3cc27b..fbafd47 100644 (file)
@@ -28,6 +28,10 @@ endef
 
 TARGET_CFLAGS += $(FPIC)
 
+ifneq ($(CONFIG_USE_EGLIBC),)
+TARGET_CFLAGS += -D_GNU_SOURCE
+endif
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                HAVE_LIBRESOLV= \