File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,6 +45,9 @@ elif [[ "$PLATFORM" == "macos" ]]; then
4545 export CXX=clang++
4646 export AR=$( xcrun --find ar)
4747 export RANLIB=$( xcrun --find ranlib)
48+ export MACOSX_DEPLOYMENT_TARGET=10.15
49+ export CFLAGS=" ${CFLAGS:- } -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET "
50+ export LDFLAGS=" ${LDFLAGS:- } -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET "
4851 OPENSSLDIR=" $BUILDDIR /openssl"
4952 LIBEVENTDIR=" $BUILDDIR /libevent"
5053else
@@ -220,6 +223,9 @@ elif [[ "$PLATFORM" == "macos" ]]; then
220223 -change " $LIBEVENTDIR /lib/$LIBEVENT_FILE " \
221224 " @executable_path/$LIBEVENT_FILE " \
222225 " $TORBINDIR /tor"
226+ install_name_tool \
227+ -id " @executable_path/$LIBEVENT_FILE " \
228+ " $TORBINDIR /$LIBEVENT_FILE "
223229
224230else
225231 install -s " $DISTDIR /bin/tor.exe" " $TORBINDIR "
You can’t perform that action at this time.
0 commit comments