l2tpv3tun: link against libnl-tiny
authorFlorian Fainelli <florian@openwrt.org>
Tue, 20 May 2014 04:51:53 +0000 (04:51 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Tue, 20 May 2014 04:51:53 +0000 (04:51 +0000)
We were not properly linking with libnl as intended, and linking with
libnl-tiny works just fine, so use that one instead.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 40798

net/l2tpv3tun/Makefile

index f965569e2843b462047d0c15c48b6d13746678db..f72d8d4811d1268316a496527383087c8290b2d8 100644 (file)
@@ -23,7 +23,7 @@ include $(INCLUDE_DIR)/package.mk
 define Package/l2tpv3tun
   SECTION:=net
   CATEGORY:=Network
-  DEPENDS:=+libnl +ip +kmod-l2tp +kmod-l2tp-ip +kmod-l2tp-eth
+  DEPENDS:=+libnl-tiny +ip +kmod-l2tp +kmod-l2tp-ip +kmod-l2tp-eth
   TITLE:=Control utility for static L2TP v3 (Pseudowire) tunnels
   MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
   URL:=http://www.openl2tp.org
@@ -36,9 +36,9 @@ endef
 
 MAKE_FLAGS += \
        CC="$(TARGET_CC)" \
-       CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(LINUX_DIR)/include" \
+       CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/libnl-tiny/" \
        LD="$(TARGET_CC)" \
-       LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib -lnl -lnl-genl"
+       LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/ -lnl-tiny"
 
 define Package/l2tpv3tun/install
        $(INSTALL_DIR) $(1)/usr/bin