blob: 3e9490309952af64b91abe107536690c8c150388 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# $NetBSD: marshall,v 1.3 2003/10/03 19:40:55 jlam Exp $
#
case $arg in
#
# Merge "-Wl,--rpath -Wl,/path/to/dir" into a single argument
# "-Wl,--rpath,/path/to/dir" so that we can look it up in the cache.
#
-Wl,-rpath|-Wl,-rpath-link|\
-Wl,--rpath|-Wl,--rpath-link)
nextarg=`$echo "X$1" | $Xsed -e "s|^-Wl,||g"`
arg="$arg,$nextarg"
shift
;;
#
# Darwin's special GCC uses "-install_name /path/shlib" to indicate
# the final installed location for the named shared library, and we
# need to protect the full path from "/path/shlib" -> "-L/path -lshlib"
# transformation.
#
-install_name)
skip=1
;;
esac
|