MacOS X does not support "-Wl,-rpath-link" but supports "-Wl,-rpath"
This commit is contained in:
parent
a759e0d0c1
commit
1b26445586
|
@ -40,8 +40,8 @@ SED="sed"
|
|||
#debug
|
||||
_debug()
|
||||
{
|
||||
echo $@ 1>&2
|
||||
$@
|
||||
echo "$@" 1>&2
|
||||
"$@"
|
||||
}
|
||||
|
||||
|
||||
|
@ -99,9 +99,18 @@ while [ $# -gt 0 ]; do
|
|||
continue
|
||||
fi
|
||||
|
||||
#portability
|
||||
RPATH="-Wl,-rpath-link,\${libdir} -Wl,-rpath,\${libdir}"
|
||||
case $(uname -s) in
|
||||
Darwin)
|
||||
RPATH="-Wl,-rpath,\${libdir}"
|
||||
;;
|
||||
esac
|
||||
|
||||
#create
|
||||
$DEBUG $SED -e "s,@PREFIX@,$PREFIX," \
|
||||
-e "s,@VERSION@,$VERSION," "$target.in" > "$target"
|
||||
$DEBUG $SED -e "s:@PREFIX@:$PREFIX:" \
|
||||
-e "s:@VERSION@:$VERSION:" \
|
||||
-e "s:@RPATH@:$RPATH:" -- "$target.in" > "$target"
|
||||
if [ $? -ne 0 ]; then
|
||||
$DEBUG $RM -- "$target"
|
||||
exit 2
|
||||
|
|
Loading…
Reference in New Issue
Block a user