pcapsipdump: compile fixes 291/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Thu, 8 Mar 2018 14:56:46 +0000 (15:56 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Thu, 8 Mar 2018 14:56:54 +0000 (15:56 +0100)
Previous revert only works when libstdcpp is the default C++ lib. To
make the compile work in all scenarios LIBS needs to be defined and
MAKE_FLAGS are required instead of MAKE_VARS, otherwise the included
variables are overridden.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/pcapsipdump/Makefile

index d259b176895c0c180d6bba742e05de7ab99ddab0..ebc3a9bd54d0ed9bbef06f65acc1debc1fb4a6ef 100644 (file)
@@ -36,9 +36,10 @@ define Package/pcapsipdump/description
  (even if there is thousands of concurrect SIP sessions).
 endef
 
-MAKE_VARS += \
+MAKE_FLAGS += \
        CC="$(TARGET_CXX)" \
-       CPPFLAGS="$(TARGET_CXXFLAGS) -fno-rtti $(TARGET_CPPFLAGS)"
+       CPPFLAGS="$(TARGET_CXXFLAGS) -fno-rtti $(TARGET_CPPFLAGS)" \
+       LIBS="-lpcap"
 
 define Package/pcapsipdump/install
        $(INSTALL_DIR) $(1)/usr/bin