diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2019-09-30 14:24:19 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2019-09-30 14:24:19 +0000 |
commit | bd42759faaa9546062943f06b503facea157bb05 (patch) | |
tree | 8a1550dc19df04f80b19ee35b862a3326943e422 /net/spoofer | |
parent | 7840093c8a689eef0946ff341b65ba37defbac8d (diff) | |
download | ports-bd42759faaa9546062943f06b503facea157bb05.tar.gz ports-bd42759faaa9546062943f06b503facea157bb05.zip |
net/spoofer: fix build on GCC architectures
GCC from ports on GCC architectures fails to build this port when base OpenSSL is used because -L/usr/lib takes over -L/usr/local/lib/gcc9 and in result, base libstdc++ is used instead of the one from ports. Fix this issue with patch to configure script.
PR: 240690
Approved by: linimon (mentor), portmgr (blanket: build fix)
Notes
Notes:
svn path=/head/; revision=513388
Diffstat (limited to 'net/spoofer')
-rw-r--r-- | net/spoofer/files/patch-configure | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/spoofer/files/patch-configure b/net/spoofer/files/patch-configure new file mode 100644 index 000000000000..1b40a4a10795 --- /dev/null +++ b/net/spoofer/files/patch-configure @@ -0,0 +1,15 @@ +--- configure.orig 2019-07-03 23:43:25 UTC ++++ configure +@@ -11092,8 +11092,10 @@ fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 + $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; } + if test -f "$ssldir/include/openssl/ssl.h"; then +- OPENSSL_INCLUDES="-I$ssldir/include" +- OPENSSL_LDFLAGS="-L$ssldir/lib" ++ if test $ssldir != /usr; then ++ OPENSSL_INCLUDES="-I$ssldir/include" ++ OPENSSL_LDFLAGS="-L$ssldir/lib" ++ fi + OPENSSL_LIBS="-lssl -lcrypto" + found=true + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |