mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
Merge pull request #80603 from eraserhd/plan9port-macos-ldflags
plan9port: fix linker flags for macosx
This commit is contained in:
commit
fd4df0bcbb
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user