mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00
n2n: dynamic link to libcap (#9779)
Co-authored-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
ce12ca653e
commit
8bb65fc710
@ -26,12 +26,12 @@ define Package/n2n/template
|
||||
SUBMENU:=VPN
|
||||
TITLE:=N2N Peer-to-peer VPN
|
||||
URL:=http://www.ntop.org/n2n
|
||||
DEPENDS:=+libcap +libopenssl +libpthread +libzstd
|
||||
DEPENDS:=+libopenssl +libpthread +libzstd
|
||||
endef
|
||||
|
||||
define Package/n2n
|
||||
$(call Package/n2n/template)
|
||||
DEPENDS+=+kmod-tun +resolveip
|
||||
DEPENDS+=+libcap +kmod-tun +resolveip
|
||||
endef
|
||||
|
||||
define Package/n2n/description
|
||||
|
11
package/lean/n2n/patches/100-dynamic-libcap.patch
Normal file
11
package/lean/n2n/patches/100-dynamic-libcap.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -185,7 +185,7 @@ if(N2N_OPTION_USE_PCAPLIB AND (NOT DEFIN
|
||||
# Linux Capabilities
|
||||
find_library(CAP_LIB cap)
|
||||
if(CAP_LIB)
|
||||
- target_link_libraries(edge cap.a)
|
||||
+ target_link_libraries(edge cap)
|
||||
set(CMAKE_REQUIRED_LIBRARIES ${CAP_LIB})
|
||||
ADD_DEFINITIONS("-DHAVE_LIBCAP")
|
||||
endif()
|
Loading…
Reference in New Issue
Block a user