]> git.saurik.com Git - apple/libresolv.git/blob - xcodescripts/links.sh
libresolv-54.tar.gz
[apple/libresolv.git] / xcodescripts / links.sh
1 #!/bin/bash
2 set -e -x
3
4 if [ "$ACTION" = installhdrs ]; then exit 0; fi
5
6 # check if we're building for the simulator
7 if [ "${RC_ProjectName%_Sim}" != "${RC_ProjectName}" ] ; then
8 DSTROOT="${DSTROOT}${SDKROOT}"
9 fi
10
11 LIBDIR="$DSTROOT"/usr/lib
12 ln -s libresolv.9.dylib "$LIBDIR"/libresolv.dylib
13 chown -h "$INSTALL_OWNER:$INSTALL_GROUP" "$LIBDIR"/libresolv.dylib
14 chmod -h 0755 "$LIBDIR"/libresolv.dylib