1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-07 11:49:40 +00:00

security/yapet: fix build with GCC-based architectures

Don't link with $ssldir/lib if $ssldir is /usr.

This creates a build failure on GCC architectures. -L/usr/lib is added to LDFLAGS and GCC from ports tries to link to base libstdc++.

PR:		237703
Approved by:	mat (maintainer), rafi@guengel.ch (maintainer timeout)
Differential Revision:	https://reviews.freebsd.org/D20284
This commit is contained in:
Piotr Kubaj 2019-05-20 15:49:40 +00:00
parent 21b1707e76
commit f4a958e185
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=502122

View File

@ -0,0 +1,15 @@
--- configure.orig 2019-05-01 21:01:12 UTC
+++ configure
@@ -17500,8 +17500,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 [ $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