Use system version of curl on macOS

This commit is contained in:
Tindy X 2020-07-24 11:25:23 +08:00
parent 905aa48f00
commit 201bacbbf3
No known key found for this signature in database
GPG Key ID: C6AD413169968D58

View File

@ -3,13 +3,13 @@ set -xe
brew reinstall rapidjson libevent zlib pcre2 pkgconfig brew reinstall rapidjson libevent zlib pcre2 pkgconfig
git clone https://github.com/curl/curl --depth=1 #git clone https://github.com/curl/curl --depth=1
cd curl #cd curl
#./buildconf > /dev/null #./buildconf > /dev/null
#./configure --with-ssl=/usr/local/opt/openssl@1.1 --without-mbedtls --disable-ldap --disable-ldaps --disable-rtsp --without-libidn2 > /dev/null #./configure --with-ssl=/usr/local/opt/openssl@1.1 --without-mbedtls --disable-ldap --disable-ldaps --disable-rtsp --without-libidn2 > /dev/null
cmake -DCMAKE_USE_SECTRANSP=ON -DHTTP_ONLY=ON -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_USE_LIBSSH2=OFF . > /dev/null #cmake -DCMAKE_USE_SECTRANSP=ON -DHTTP_ONLY=ON -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_USE_LIBSSH2=OFF . > /dev/null
make -j8 > /dev/null #make -j8 > /dev/null
cd .. #cd ..
git clone https://github.com/jbeder/yaml-cpp --depth=1 git clone https://github.com/jbeder/yaml-cpp --depth=1
cd yaml-cpp cd yaml-cpp
@ -39,7 +39,7 @@ cp /usr/local/lib/libpcre2-8.a .
cmake -DCMAKE_BUILD_TYPE=Release . cmake -DCMAKE_BUILD_TYPE=Release .
make -j8 make -j8
rm subconverter rm subconverter
c++ -Xlinker -unexported_symbol -Xlinker "*" -o base/subconverter -framework CoreFoundation -framework Security $(find CMakeFiles/subconverter.dir/src/ -name "*.o") $(find . -name "*.a") -O3 c++ -Xlinker -unexported_symbol -Xlinker "*" -o base/subconverter -framework CoreFoundation -framework Security $(find CMakeFiles/subconverter.dir/src/ -name "*.o") $(find . -name "*.a") -lcurl -O3
cd base cd base
chmod +rx subconverter chmod +rx subconverter