mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 11:05:14 +00:00
plan9port: wrap ALL linker flags
This commit is contained in:
parent
4d2a8257ed
commit
7724ef793a
@ -5,25 +5,11 @@ export PLAN9_TARGET=$PLAN9
|
||||
|
||||
plan9portLinkFlags()
|
||||
{
|
||||
local -a linkFlags=()
|
||||
eval set -- "$NIX_LDFLAGS"
|
||||
while (( $# > 0 )); do
|
||||
case "$1" in
|
||||
-rpath|-macosx_version_min|-sdk_version)
|
||||
linkFlags+=( "-Wl,$1,$2" )
|
||||
shift 2
|
||||
;;
|
||||
-no_uuid)
|
||||
linkFlags+=( "-Wl,$1" )
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
linkFlags+=( "$1" )
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
local flag
|
||||
for flag in "$@"; do
|
||||
printf ' -Wl,%s' "$flag"
|
||||
done
|
||||
echo "${linkFlags[*]}"
|
||||
}
|
||||
|
||||
configurePhase()
|
||||
|
Loading…
Reference in New Issue
Block a user