pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/wrapper Treat the '--as-needed' and '--no-as-needed...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3ba4abc69412
branches: trunk
changeset: 602366:3ba4abc69412
user: sbd <sbd%pkgsrc.org@localhost>
date: Fri Apr 13 03:11:13 2012 +0000
description:
Treat the '--as-needed' and '--no-as-needed' arguments to ld as if
thay are librarys so that they still surround the given library.
WARNING: this may not work if the wrapper reorders librarys.
diffstat:
mk/wrapper/buildcmd | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r 5ab269ffe62c -r 3ba4abc69412 mk/wrapper/buildcmd
--- a/mk/wrapper/buildcmd Fri Apr 13 03:03:36 2012 +0000
+++ b/mk/wrapper/buildcmd Fri Apr 13 03:11:13 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildcmd,v 1.4 2008/04/21 14:43:50 joerg Exp $
+# $NetBSD: buildcmd,v 1.5 2012/04/13 03:11:13 sbd Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -65,7 +65,12 @@
cmd="$cmd $arg"
libs="$libs $arg"
;;
--l*)
+######################################################################
+# Treat the '--as-needed' and '--no-as-needed' arguments to ld as if
+# thay are librarys so that they still surround the given library.
+# WARNING: this may not work if the wrapper reorders librarys.
+######################################################################
+-l*|--as-needed|--no-as-needed)
case $libs in
*" "$arg)
;;
Home |
Main Index |
Thread Index |
Old Index