From: Rosen Penev Date: Mon, 1 Apr 2019 19:43:37 +0000 (-0700) Subject: softethervpn: Fix compilation under 64-bit targets X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=1eeea30fda0f573e57cd00bd3560f7af63fa6d10;p=feed%2Fpackages.git softethervpn: Fix compilation under 64-bit targets -m64 is not compatible with OpenWrt's compilers. Signed-off-by: Rosen Penev (cherry-picked from 23134b07de24cce815c4c1f0f700393ada69a33e) --- diff --git a/net/softethervpn/Makefile b/net/softethervpn/Makefile index 14c3222474..9619c53777 100644 --- a/net/softethervpn/Makefile +++ b/net/softethervpn/Makefile @@ -12,7 +12,7 @@ PKG_NAME:=softethervpn PKG_VERSION:=4.29-9680 PKG_VERREL:=rtm PKG_VERDATE:=2019.02.28 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=softether-src-v$(PKG_VERSION)-$(PKG_VERREL).tar.gz PKG_SOURCE_URL:=http://www.softether-download.com/files/softether/v$(PKG_VERSION)-$(PKG_VERREL)-$(PKG_VERDATE)-tree/Source_Code/ diff --git a/net/softethervpn/patches/103-noeucjp.patch b/net/softethervpn/patches/103-noeucjp.patch index f403dfb128..b1e338cfc0 100644 --- a/net/softethervpn/patches/103-noeucjp.patch +++ b/net/softethervpn/patches/103-noeucjp.patch @@ -1,6 +1,6 @@ --- a/src/Mayaqua/Internat.c +++ b/src/Mayaqua/Internat.c -@@ -123,7 +123,7 @@ +@@ -114,7 +114,7 @@ #include extern LOCK *token_lock; @@ -9,7 +9,7 @@ static LOCK *iconv_lock = NULL; void *iconv_cache_wide_to_str = 0; void *iconv_cache_str_to_wide = 0; -@@ -938,7 +938,7 @@ void InitInternational() +@@ -929,7 +929,7 @@ void InitInternational() #ifdef UNIX_MACOS StrCpy(charset, sizeof(charset), "utf-8"); #else // UNIX_MACOS @@ -18,7 +18,7 @@ #endif // UNIX_MACOS d = IconvWideToStrInternal(); if (d == (void *)-1) -@@ -1198,7 +1198,7 @@ void GetCurrentCharSet(char *name, UINT +@@ -1189,7 +1189,7 @@ void GetCurrentCharSet(char *name, UINT } else { diff --git a/net/softethervpn/patches/110-no-m64.patch b/net/softethervpn/patches/110-no-m64.patch new file mode 100644 index 0000000000..ed21e14881 --- /dev/null +++ b/net/softethervpn/patches/110-no-m64.patch @@ -0,0 +1,14 @@ +--- a/src/makefiles/linux_64bit.mak ++++ b/src/makefiles/linux_64bit.mak +@@ -66,9 +66,9 @@ OPTIONS_COMPILE_DEBUG=-D_DEBUG -DDEBUG -DUNIX -DUNIX_LINUX -DCPU_64 -D_REENTRANT + + OPTIONS_LINK_DEBUG=-g -fsigned-char -m64 -lm -ldl -lrt -lpthread -lssl -lcrypto -lreadline -lncurses -lz + +-OPTIONS_COMPILE_RELEASE=-DNDEBUG -DVPN_SPEED -DUNIX -DUNIX_LINUX -DCPU_64 -D_REENTRANT -DREENTRANT -D_THREAD_SAFE -D_THREADSAFE -DTHREAD_SAFE -DTHREADSAFE -D_FILE_OFFSET_BITS=64 -I./src/ -I./src/Cedar/ -I./src/Mayaqua/ -O2 -fsigned-char -m64 ++OPTIONS_COMPILE_RELEASE=-DNDEBUG -DVPN_SPEED -DUNIX -DUNIX_LINUX -DCPU_64 -D_REENTRANT -DREENTRANT -D_THREAD_SAFE -D_THREADSAFE -DTHREAD_SAFE -DTHREADSAFE -D_FILE_OFFSET_BITS=64 -I./src/ -I./src/Cedar/ -I./src/Mayaqua/ -O2 -fsigned-char + +-OPTIONS_LINK_RELEASE=-O2 -fsigned-char -m64 -lm -ldl -lrt -lpthread -lssl -lcrypto -lreadline -lncurses -lz ++OPTIONS_LINK_RELEASE=-O2 -fsigned-char -lm -ldl -lrt -lpthread -lssl -lcrypto -lreadline -lncurses -lz + + INSTALL_BINDIR=/usr/bin/ + INSTALL_VPNSERVER_DIR=/usr/vpnserver/