]> git.saurik.com Git - apple/libsystem.git/blobdiff - xcodescripts/create_dylib_symlinks.sh
Libsystem-1281.tar.gz
[apple/libsystem.git] / xcodescripts / create_dylib_symlinks.sh
index cb0ef81761a6af0f352ca4dd3e70b7f6aa7a4220..c7d87e2a6c888ba77562acfae5aae804ed8551ee 100755 (executable)
@@ -5,12 +5,18 @@ if [ $# -ne 3 ]; then
     exit 1
 fi
 
+if [[ "${DRIVERKIT}" == "1" ]]; then exit 0; fi; # No compatibility symlinks in DriverKit SDK
+
 DSTROOT="$1${INSTALL_PATH_PREFIX}"
 ACTION="$2"
 VARIANTS="$3"
 
 BSD_LIBS="c info m pthread dbm poll dl rpcsvc proc"
 
+if [[ "${PLATFORM_NAME}" =~ macosx ]]; then
+   BSD_LIBS="${BSD_LIBS} gcc_s.1"
+fi
+
 mkdir -p "${DSTROOT}/usr/lib" || exit 1
 
 if [ "${ACTION}" != "installhdrs" ]; then
@@ -20,11 +26,7 @@ if [ "${ACTION}" != "installhdrs" ]; then
            suffix="_${variant}"
        fi
 
-        if [[ "${PLATFORM_NAME}" =~ simulator ]] ; then
-            ln -sf "libSystem${suffix}.dylib" "${DSTROOT}/usr/lib/libSystem.B${suffix}.dylib" || exit 1
-        else
-            ln -sf "libSystem.B${suffix}.dylib" "${DSTROOT}/usr/lib/libSystem${suffix}.dylib" || exit 1
-        fi
+        ln -sf "libSystem.B${suffix}.dylib" "${DSTROOT}/usr/lib/libSystem${suffix}.dylib" || exit 1
 
        for i in ${BSD_LIBS}; do
            ln -sf "libSystem.dylib" "${DSTROOT}/usr/lib/lib${i}.dylib" || exit 1