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()
{
local -a linkFlags=()
eval set -- "$NIX_LDFLAGS"
while (( $# > 0 )); do
if [[ $1 = -rpath ]]; then
linkFlags+=( "-Wl,-rpath,$2" )
shift 2
else
linkFlags+=( "$1" )
shift
fi
local flag
for flag in "$@"; do
printf ' -Wl,%s' "$flag"
done
echo "${linkFlags[*]}"
}
configurePhase()