pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/buildlink3 Darwin's special GCC also uses -dylib_fi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0226d7ca25b5
branches:  trunk
changeset: 467971:0226d7ca25b5
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Mon Feb 09 04:35:12 2004 +0000

description:
Darwin's special GCC also uses -dylib_file and -dylib_install_name in
similar ways to -install_name, and all need the subsequent argument to be
protected from /path/shlib -> -L/path -lshlib transformations.

diffstat:

 mk/buildlink3/marshall |  15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r b421fcf6e46c -r 0226d7ca25b5 mk/buildlink3/marshall
--- a/mk/buildlink3/marshall    Mon Feb 09 04:17:28 2004 +0000
+++ b/mk/buildlink3/marshall    Mon Feb 09 04:35:12 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: marshall,v 1.7 2004/01/15 09:59:29 jlam Exp $
+# $NetBSD: marshall,v 1.8 2004/02/09 04:35:12 jlam Exp $
 #
 # Handle cases where multiple consecutive arguments must be processed
 # together, either by merging the arguments or "skipping" the extra
@@ -30,12 +30,17 @@
        skipargs=1
        ;;
 #
-# 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"
+# Darwin's special GCC uses:
+#
+#      -dylib_file /path/shlib:/path2/shlib
+#      -dylib_install_name /path/shlib
+#      -install_name /path/shlib
+#
+# to pass the installed locations for the shared libraries to the linker,
+# and we need to protect the full path from "/path/shlib" -> "-L/path -lshlib"
 # transformation.
 #
--install_name)
+-dylib_file|-dylib_install_name|-install_name)
        skipargs=1
        ;;
 esac



Home | Main Index | Thread Index | Old Index