do not use rpath on Darwin
This commit is contained in:
parent
803292c631
commit
108559b2d7
1 changed files with 6 additions and 2 deletions
8
bin/9l
8
bin/9l
|
|
@ -161,10 +161,12 @@ tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -m`}"
|
||||||
case "$tag" in
|
case "$tag" in
|
||||||
*OpenBSD*)
|
*OpenBSD*)
|
||||||
ld=gcc
|
ld=gcc
|
||||||
|
userpath=true
|
||||||
extralibs="$extralibs -lutil -lpthread"
|
extralibs="$extralibs -lutil -lpthread"
|
||||||
;;
|
;;
|
||||||
*FreeBSD*)
|
*FreeBSD*)
|
||||||
ld=gcc
|
ld=gcc
|
||||||
|
userpath=true
|
||||||
extralibs="$extralibs -lutil"
|
extralibs="$extralibs -lutil"
|
||||||
case "`uname -r`" in
|
case "`uname -r`" in
|
||||||
[5-9].*)
|
[5-9].*)
|
||||||
|
|
@ -174,10 +176,12 @@ case "$tag" in
|
||||||
;;
|
;;
|
||||||
*BSD*)
|
*BSD*)
|
||||||
ld=gcc
|
ld=gcc
|
||||||
|
userpath=true
|
||||||
extralibs="$extralibs -lutil"
|
extralibs="$extralibs -lutil"
|
||||||
;;
|
;;
|
||||||
*Linux*)
|
*Linux*)
|
||||||
ld=gcc
|
ld=gcc
|
||||||
|
userpath=true
|
||||||
extralibs="$extralibs -lutil"
|
extralibs="$extralibs -lutil"
|
||||||
case "${SYSVERSION:-`uname -r`}" in
|
case "${SYSVERSION:-`uname -r`}" in
|
||||||
2.6.*)
|
2.6.*)
|
||||||
|
|
@ -207,8 +211,8 @@ case "$tag" in
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$ld" in
|
case "$userpath" in
|
||||||
gcc)
|
true)
|
||||||
for i in "$libsl $@"
|
for i in "$libsl $@"
|
||||||
do
|
do
|
||||||
case "$i" in
|
case "$i" in
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue