mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix MacOS build & update INSTALL.md
Fix build for Apple silicon Mac. Update INSTALL.md with relevant instructions. Signed-off-by: rmultan <multan.rafal.k@gmail.com>
This commit is contained in:
parent
6d43b8e334
commit
ae734603b9
4 changed files with 24 additions and 6 deletions
|
@ -197,9 +197,9 @@ if [ "$PLATFORM" = Darwin ] ; then
|
|||
MAC_CMAKE="-DCMAKE_OSX_DEPLOYMENT_TARGET=${BASESDK} -DCMAKE_OSX_SYSROOT=${SDKROOT}/MacOSX${BASESDK}.sdk/ -DCMAKE_OSX_ARCHITECTURES='x86_64;arm64'"
|
||||
MAC_OPTS="-mmacosx-version-min=${BASESDK} -isysroot${SDKROOT}/MacOSX${BASESDK}.sdk -arch arm64 -arch x86_64"
|
||||
else
|
||||
MAC_CMAKE="-DCMAKE_OSX_DEPLOYMENT_TARGET=${BASESDK} -DCMAKE_OSX_SYSROOT=${SDKROOT}/MacOSX${BASESDK}.sdk/"
|
||||
MAC_OPTS="-mmacosx-version-min=${BASESDK} -isysroot${SDKROOT}/MacOSX${BASESDK}.sdk"
|
||||
ARCHS=$(uname -m) # crazy, I know, but $(arch) results in the incorrect 'i386' on an x86_64 Mac
|
||||
MAC_CMAKE="-DCMAKE_OSX_DEPLOYMENT_TARGET=${BASESDK} -DCMAKE_OSX_SYSROOT=${SDKROOT}/MacOSX${BASESDK}.sdk/ -DCMAKE_OSX_ARCHITECTURES=$ARCHS"
|
||||
MAC_OPTS="-mmacosx-version-min=${BASESDK} -isysroot${SDKROOT}/MacOSX${BASESDK}.sdk"
|
||||
fi
|
||||
# OpenSSL can't deal with multi arch build
|
||||
MAC_OPTS_OPENSSL="-mmacosx-version-min=${BASESDK} -isysroot${SDKROOT}/MacOSX${BASESDK}.sdk"
|
||||
|
@ -381,7 +381,7 @@ if [[ $PLATFORM = Darwin && "$BUILD_DEPS" == "1" ]] ; then
|
|||
bash ./buildconf
|
||||
mkdir -p build
|
||||
cd build
|
||||
CFLAGS="$MAC_OPTS" ../configure --prefix="$INSTALL_ROOT" --with-darwinssl \
|
||||
CFLAGS="$MAC_OPTS" ../configure --prefix="$INSTALL_ROOT" --with-openssl \
|
||||
--disable-tftp --disable-ftp --disable-ldap --disable-ldaps --disable-imap --disable-pop3 --disable-smtp --disable-gopher --disable-smb --disable-rtsp
|
||||
make -j4
|
||||
make install
|
||||
|
@ -648,6 +648,10 @@ for (( i=0 ; i < ${#BUILDS[@]} ; i++ )) ; do
|
|||
if [ "$PLATFORM" = Darwin ] ; then
|
||||
rm -rf Subsurface.app
|
||||
rm -rf Subsurface-mobile.app
|
||||
|
||||
if [ "$DEBUGRELEASE" = Debug ] ; then
|
||||
cp "$SRC"/${SRC_DIR}/entitlements-mac-dev.plist .
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! "$PREP_ONLY" = "1" ] ; then
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
# set version of 3rd party libraries
|
||||
CURRENT_LIBZ="v1.2.11"
|
||||
CURRENT_LIBZIP="rel-1-5-1"
|
||||
CURRENT_LIBGIT2="v1.0.1"
|
||||
CURRENT_LIBCURL="curl-7_54_1"
|
||||
CURRENT_LIBGIT2="v1.8.1"
|
||||
CURRENT_LIBCURL="curl-7_88_1"
|
||||
CURRENT_LIBUSB="v1.0.25"
|
||||
CURRENT_OPENSSL="OpenSSL_1_1_1m"
|
||||
CURRENT_LIBSSH2="libssh2-1.8.0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue