From b85c785c1215f6b3a6da80a79aecbcd510c64ace Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Sat, 8 Jan 2022 05:43:37 -0700 Subject: [PATCH] Ports: Add /usr/local/lib to openssl's library search path This allows building with the clang toolchain. We might consider a more global patch in the future for this, it seems a lot of packages need help to find /usr/local/lib. --- Ports/openssl/package.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/Ports/openssl/package.sh b/Ports/openssl/package.sh index 45b3d6e2a2d..336b1e8fe7a 100755 --- a/Ports/openssl/package.sh +++ b/Ports/openssl/package.sh @@ -11,6 +11,7 @@ depends=("zlib") configopts=("--prefix=/usr/local" "-DOPENSSL_SYS_SERENITY=1" "-DOPENSSL_USE_IPV6=0" "zlib" "threads" "no-tests" "no-asm" "serenity-generic") configure() { + export LDFLAGS="-L${SERENITY_INSTALL_ROOT}/usr/local/lib" run ./"$configscript" "${configopts[@]}" }