]>
git.saurik.com Git - apple/libsystem.git/blob - xcodescripts/create_dylib_symlinks.sh
4 echo "Usage: $0 <dstroot> <action> <variants>" 1>&2
8 if [[ "${DRIVERKIT}" == "1" ]]; then exit 0; fi; # No compatibility symlinks in DriverKit SDK
10 DSTROOT
="$1${INSTALL_PATH_PREFIX}"
14 BSD_LIBS
="c info m pthread dbm poll dl rpcsvc proc"
16 if [[ "${PLATFORM_NAME}" =~ macosx
]]; then
17 BSD_LIBS
="${BSD_LIBS} gcc_s.1"
20 mkdir -p "${DSTROOT}/usr/lib" || exit 1
22 if [ "${ACTION}" != "installhdrs" ]; then
23 for variant
in ${VARIANTS}; do
25 if [ ${variant} != "normal" ]; then
29 ln -sf "libSystem.B${suffix}.dylib" "${DSTROOT}/usr/lib/libSystem${suffix}.dylib" || exit 1
31 for i
in ${BSD_LIBS}; do
32 ln -sf "libSystem.dylib" "${DSTROOT}/usr/lib/lib${i}.dylib" || exit 1