Skip to content
Snippets Groups Projects
Commit 22385653 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

Now uniqifies -L options.

Rev: bin/smartlink:1.17
parent e30a8241
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,9 @@
LINKER="$1"
shift
RPATH=""
LDOPTS=""
LPATH=""
LPATHS="::"
LOPTS=""
#Special hack for HP-UX
LD_PXDB=/dev/null
......@@ -30,6 +32,28 @@ while test "$#" != 0; do
fi
RPATH="$RPATH:$tmp"
;;
-n32)
SET_N32="-n32"
;;
-L*)
if test x$1 = x-L ; then
tmp="$2"
shift
else
tmp=`echo $1 | sed -e 's/^-L//g'`
fi
case $LDPATHS in
*:$tmp:*)
;;
*)
LDPATHS="$LDPATHS$tmp:"
LDOPTS="$LDOPTS -L$tmp"
;;
esac
;;
-n32)
SET_N32="-n32"
;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment