summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2003-10-03 19:40:55 +0000
committerjlam <jlam>2003-10-03 19:40:55 +0000
commitd32c9f0e1fbc161cbbf6fb1b80459bfc34b91387 (patch)
treeceadf09965dd5d86fd8bb19206f879bea4b70106
parent687eb1a698518352774991d77db65965ff9b0160 (diff)
downloadpkgsrc-d32c9f0e1fbc161cbbf6fb1b80459bfc34b91387.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.
-rw-r--r--mk/buildlink3/marshall14
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