libs/libdnet: fix compile issues. (closes #8365)
authorAlexandros C. Couloumbis <alex@ozo.com>
Tue, 7 Dec 2010 17:22:16 +0000 (17:22 +0000)
committerAlexandros C. Couloumbis <alex@ozo.com>
Tue, 7 Dec 2010 17:22:16 +0000 (17:22 +0000)
SVN-Revision: 24309

libs/libdnet/Makefile

index 44bd21d..54e25c4 100644 (file)
@@ -68,6 +68,17 @@ CONFIGURE_ARGS += \
 CONFIGURE_VARS += \
        ac_cv_dnet_bsd_bpf=no
 
+MAKE_FLAGS += \
+       CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
+
+define Build/Configure
+       (cd $(PKG_BUILD_DIR); \
+               ln -sf config/acinclude.m4 . ; \
+               autoreconf -v --install || exit 1 \
+       );
+       $(call Build/Configure/Default)
+endef
+
 define Build/Compile
        $(call Build/Compile/Default)
        $(if $(CONFIG_PACKAGE_pydnet), \