mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
a2616cbc21
Adding -L/usr/lib breaks compilation with GCC from ports because it attempts to link to base libstdc++. PR: 241891 Approved by: freebsd@coombscloud.com (maintainer), linimon (mentor)
12 lines
696 B
Plaintext
12 lines
696 B
Plaintext
--- m4/ax_check_openssl.m4.orig 2019-11-11 19:52:41 UTC
|
|
+++ m4/ax_check_openssl.m4
|
|
@@ -53,7 +53,7 @@ AC_DEFUN([AX_CHECK_OPENSSL], [
|
|
# then use that information and don't search ssldirs
|
|
AC_CHECK_TOOL([PKG_CONFIG], [pkg-config])
|
|
if test x"$PKG_CONFIG" != x""; then
|
|
- OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
|
|
+ OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null | sed 's|-L/usr/lib||g'`
|
|
if test $? = 0; then
|
|
OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
|
|
OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
|