mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +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()
|
||||
{
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user