Darwin: Search for libraries in $sdk/usr/lib

This required adding a new environment variable NIX_LDFLAGS_AFTER
that ensures that the -L.../usr/lib flag happens last.
This commit is contained in:
Eelco Dolstra
2014-07-01 15:53:30 +02:00
parent 06536251c9
commit 0d8014f6fc
3 changed files with 8 additions and 10 deletions

View File

@@ -48,8 +48,8 @@ extra=()
extraBefore=()
if test -z "$NIX_LDFLAGS_SET"; then
extra=(${extra[@]} $NIX_LDFLAGS)
extraBefore=(${extraBefore[@]} $NIX_LDFLAGS_BEFORE)
extra+=($NIX_LDFLAGS $NIX_LDFLAGS_AFTER)
extraBefore+=($NIX_LDFLAGS_BEFORE)
fi

View File

@@ -48,8 +48,8 @@ extra=()
extraBefore=()
if test -z "$NIX_LDFLAGS_SET"; then
extra=(${extra[@]} $NIX_LDFLAGS)
extraBefore=(${extraBefore[@]} $NIX_LDFLAGS_BEFORE)
extra+=($NIX_LDFLAGS $NIX_LDFLAGS_AFTER)
extraBefore+=($NIX_LDFLAGS_BEFORE)
fi