1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/archivers/urbackup-client/files/patch-m4_ax__check__openssl.m4
Piotr Kubaj a2616cbc21 archivers/urbackup-client: fix build on GCC architectures
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)
2019-11-13 14:38:10 +00:00

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`