pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/buildlink3 If we're linking a shared library by "cc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/011b3a16d7a2
branches:  trunk
changeset: 463751:011b3a16d7a2
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Nov 25 14:44:39 2003 +0000

description:
If we're linking a shared library by "cc -shared -o /srcdir/shlib", we
need to protect the full path after "-o" from being transformed from
"/srcdir/shlib" to "-L/srcdir -lshlib".  This fixes building
graphics/freetype2, which uses lots of full paths to sources and objects.

diffstat:

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

diffs (24 lines):

diff -r 5592d429e473 -r 011b3a16d7a2 mk/buildlink3/marshall
--- a/mk/buildlink3/marshall    Tue Nov 25 14:43:23 2003 +0000
+++ b/mk/buildlink3/marshall    Tue Nov 25 14:44:39 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: marshall,v 1.5 2003/10/09 08:19:47 jlam Exp $
+# $NetBSD: marshall,v 1.6 2003/11/25 14:44:39 jlam Exp $
 #
 # Handle cases where multiple consecutive arguments must be processed
 # together, either by merging the arguments or "skipping" the extra
@@ -16,6 +16,14 @@
        shift
        ;;
 #
+# If we're linking a shared library by "cc -shared -o /srcdir/shlib",
+# we need to protect the full path after "-o" from being transformed
+# from "/srcdir/shlib" to "-L/srcdir -lshlib"
+#
+-o)
+       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"



Home | Main Index | Thread Index | Old Index