Fix libnetfilter-queue compilation under arm and cleanup makefile
authorFlorian Fainelli <florian@openwrt.org>
Sun, 28 Sep 2008 15:06:22 +0000 (15:06 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 28 Sep 2008 15:06:22 +0000 (15:06 +0000)
SVN-Revision: 12762

libs/libnetfilter-queue/Makefile

index a5a20f4645ebc3a7f2b441bf0bb5e0f68af1972e..46d9734476e2b58f066140eb3fd9fc124e7aee87 100644 (file)
@@ -40,14 +40,10 @@ CONFIGURE_ARGS += \
        LIBNFNETLINK_CFLAGS="-I$(STAGING_DIR)/usr/include" \
        LIBNFNETLINK_LIBS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib"
 
-MAKE_FLAGS += \
-       CFLAGS="$(TARGET_CFLAGS)"
-
-
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
-               LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
+               LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -lc -L$(TOOLCHAIN_DIR)/lib" \
                DESTDIR="$(PKG_INSTALL_DIR)" \
                all install
 endef