diff options
author | sbd <sbd> | 2012-04-13 03:11:13 +0000 |
---|---|---|
committer | sbd <sbd> | 2012-04-13 03:11:13 +0000 |
commit | af8a81a9337174782b8ab9ef4d3bc4326890098a (patch) | |
tree | 0004d823c927838c4076894bb635728434da738b /mk/wrapper | |
parent | bf908c15861e10acbd7632fdddab776965061a31 (diff) | |
download | pkgsrc-af8a81a9337174782b8ab9ef4d3bc4326890098a.tar.gz |
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 (limited to 'mk/wrapper')
-rw-r--r-- | mk/wrapper/buildcmd | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mk/wrapper/buildcmd b/mk/wrapper/buildcmd index 61fce2af41a..f5bed67da2b 100644 --- a/mk/wrapper/buildcmd +++ b/mk/wrapper/buildcmd @@ -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 @@ case $arg in 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) ;; |