#!/bin/bash if [[ -x /usr/bin/xcrun ]] ; then exec /usr/bin/xcrun ld -ld_classic "${@}" elif [[ -x /usr/bin/ld ]] ; then exec /usr/bin/ld -ld_classic "${@}" else exec ld -ld_classic "${@}" fi