From eeffa0f5449535223cd2fae54a776ab6dd35be35 Mon Sep 17 00:00:00 2001 From: Tindy X <49061470+tindy2013@users.noreply.github.com> Date: Wed, 3 Apr 2024 19:13:12 +0800 Subject: [PATCH] Use brew provided path for libraries on macOS --- scripts/build.macos.release.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/build.macos.release.sh b/scripts/build.macos.release.sh index 39d07e2ea..12b800da2 100644 --- a/scripts/build.macos.release.sh +++ b/scripts/build.macos.release.sh @@ -47,14 +47,11 @@ cmake -DCMAKE_CXX_STANDARD=11 . sudo make install -j6 > /dev/null cd .. -cp /usr/local/opt/zlib/lib/libz.a . -cp /usr/local/lib/libpcre2-8.a . - cmake -DCMAKE_BUILD_TYPE=Release . make -j6 rm subconverter # shellcheck disable=SC2046 -c++ -Xlinker -unexported_symbol -Xlinker "*" -o base/subconverter -framework CoreFoundation -framework Security $(find CMakeFiles/subconverter.dir/src/ -name "*.o") $(find . -name "*.a") -lcurl -O3 +c++ -Xlinker -unexported_symbol -Xlinker "*" -o base/subconverter -framework CoreFoundation -framework Security $(find CMakeFiles/subconverter.dir/src/ -name "*.o") "$(brew --prefix zlib)/lib/libz.a" "$(brew --prefix pcre2)/lib/libpcre2-8.a" -lcurl -O3 python -m ensurepip sudo python -m pip install gitpython