summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2003-10-03 19:40:55 +0000
committerjlam <jlam@pkgsrc.org>2003-10-03 19:40:55 +0000
commit8ecc105e86e9b03aca19c26bcb722b3a965ce317 (patch)
treeceadf09965dd5d86fd8bb19206f879bea4b70106 /mk
parent197d02376d43a35c2e66371dbddc2084eb723e5d (diff)
downloadpkgsrc-8ecc105e86e9b03aca19c26bcb722b3a965ce317.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/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