diff options
author | jlam <jlam@pkgsrc.org> | 2003-10-03 19:40:55 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2003-10-03 19:40:55 +0000 |
commit | 0d6500a6f9e1ef0ffb2b430ed425c385fe72e531 (patch) | |
tree | ceadf09965dd5d86fd8bb19206f879bea4b70106 /mk | |
parent | 898bfd9e61e50289ae7477ae5f131857fe0878fe (diff) | |
download | pkgsrc-0d6500a6f9e1ef0ffb2b430ed425c385fe72e531.tar.gz |
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.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/buildlink3/marshall | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/mk/buildlink3/marshall b/mk/buildlink3/marshall index c59f47f1a3e..3e949030995 100644 --- a/mk/buildlink3/marshall +++ b/mk/buildlink3/marshall @@ -1,13 +1,23 @@ -# $NetBSD: marshall,v 1.2 2003/09/02 07:00:00 jlam Exp $ +# $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. # -case $arg in -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 |