Skip to content

Commit

Permalink
Use brew provided path for libraries on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
tindy2013 committed Apr 3, 2024
1 parent 73da1a8 commit eeffa0f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/build.macos.release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eeffa0f

Please sign in to comment.