27 lines
764 B
Text
27 lines
764 B
Text
# $NetBSD: marshall,v 1.5 2003/10/09 08:19:47 jlam Exp $
|
|
#
|
|
# Handle cases where multiple consecutive arguments must be processed
|
|
# together, either by merging the arguments or "skipping" the extra
|
|
# arguments.
|
|
#
|
|
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)
|
|
skipargs=1
|
|
;;
|
|
esac
|