From 27664506963690d989f0e0e50d5b09b18ffe83aa Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sat, 8 Apr 2023 18:45:37 +0800 Subject: [PATCH] fix openssl with zlib no symbol bug --- src/SPC/builder/linux/library/openssl.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SPC/builder/linux/library/openssl.php b/src/SPC/builder/linux/library/openssl.php index 0bed9009..4296e11e 100644 --- a/src/SPC/builder/linux/library/openssl.php +++ b/src/SPC/builder/linux/library/openssl.php @@ -40,7 +40,7 @@ class openssl extends LinuxLibraryBase $ex_lib = '-ldl -pthread'; $env = $this->builder->pkgconf_env . " CFLAGS='{$this->builder->arch_c_flags}'"; - $env .= " CC='{$this->builder->cc} --static -static-libgcc -idirafter " . BUILD_INCLUDE_PATH . + $env .= " CC='{$this->builder->cc} -static -idirafter " . BUILD_INCLUDE_PATH . ' -idirafter /usr/include/ ' . ' -idirafter /usr/include/' . $this->builder->arch . '-linux-gnu/ ' . "' "; @@ -64,8 +64,8 @@ class openssl extends LinuxLibraryBase ->exec( "{$this->builder->configure_env} {$env} ./Configure no-shared {$extra} " . '--prefix=/ ' . - "--libdir={$lib} " . - '--static -static ' . + '--libdir=lib ' . + '-static ' . "{$zlib_extra}" . 'no-legacy ' . "linux-{$this->builder->arch}{$clang_postfix}"