Merge pull request #80603 from eraserhd/plan9port-macos-ldflags

plan9port: fix linker flags for macosx
This commit is contained in:
Daiderd Jordan 2020-02-22 08:51:31 +01:00 committed by GitHub
commit fd4df0bcbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,18 +5,11 @@ export PLAN9_TARGET=$PLAN9
plan9portLinkFlags() plan9portLinkFlags()
{ {
local -a linkFlags=()
eval set -- "$NIX_LDFLAGS" eval set -- "$NIX_LDFLAGS"
while (( $# > 0 )); do local flag
if [[ $1 = -rpath ]]; then for flag in "$@"; do
linkFlags+=( "-Wl,-rpath,$2" ) printf ' -Wl,%s' "$flag"
shift 2
else
linkFlags+=( "$1" )
shift
fi
done done
echo "${linkFlags[*]}"
} }
configurePhase() configurePhase()