From a30ce6204435bce65f99e0101904550f2f4e5fb7 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Sat, 14 Oct 2017 18:40:53 +0200 Subject: [PATCH] Use -syslibroot instead of raw -L for SDK ref --- create-openssl-framework.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/create-openssl-framework.sh b/create-openssl-framework.sh index 0b3e7a4..bed9b65 100755 --- a/create-openssl-framework.sh +++ b/create-openssl-framework.sh @@ -45,7 +45,7 @@ if [ "$1" == "dynamic" ]; then fi #cd $TARGETDIR - #libtool -dynamic -lSystem $MIN_SDK -L"$SDK/usr/lib/" -install_name $INSTALL_NAME -compatibility_version $COMPAT_VERSION -current_version $CURRENT_VERSION lib/*.a -o $FWNAME.dylib + #libtool -dynamic -lSystem $MIN_SDK -syslibroot $SDK -install_name $INSTALL_NAME -compatibility_version $COMPAT_VERSION -current_version $CURRENT_VERSION lib/*.a -o $FWNAME.dylib TARGETOBJ="${TARGETDIR}/obj" rm -rf $TARGETOBJ @@ -54,7 +54,7 @@ if [ "$1" == "dynamic" ]; then ar -x ../lib/libcrypto.a ar -x ../lib/libssl.a cd .. - ld obj/*.o -dylib -lSystem -arch $ARCH $MIN_SDK -L"$SDK/usr/lib/" -compatibility_version $COMPAT_VERSION -current_version $CURRENT_VERSION -application_extension -o $FWNAME.dylib + ld obj/*.o -dylib -lSystem -arch $ARCH $MIN_SDK -syslibroot $SDK -compatibility_version $COMPAT_VERSION -current_version $CURRENT_VERSION -application_extension -o $FWNAME.dylib install_name_tool -id $INSTALL_NAME $FWNAME.dylib cd ..