summaryrefslogtreecommitdiff
path: root/mk/wrapper
diff options
context:
space:
mode:
authorcube <cube@pkgsrc.org>2005-01-25 23:27:34 +0000
committercube <cube@pkgsrc.org>2005-01-25 23:27:34 +0000
commit25b44db50c46e5c1baf3c1df8a98867eb5727bff (patch)
treeca2573bcf8604ede4242a7ecb667d112aa1dac21 /mk/wrapper
parent28dd6dedf96d0f790b47129759059d5390bc6f2f (diff)
downloadpkgsrc-25b44db50c46e5c1baf3c1df8a98867eb5727bff.tar.gz
Set argmatch=yes when we transform /some/where/libfoo.so into
-L/some/where -lfoo so that the arguments we push on the stack are actually used in logic. Should solve the issue build bash with option 'static' enabled reported on netbsd-users. OK'd by jlam@.
Diffstat (limited to 'mk/wrapper')
-rw-r--r--mk/wrapper/arg-pp-main5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/wrapper/arg-pp-main b/mk/wrapper/arg-pp-main
index 98f4eb4aabf..a03dc578be0 100644
--- a/mk/wrapper/arg-pp-main
+++ b/mk/wrapper/arg-pp-main
@@ -1,4 +1,4 @@
-# $NetBSD: arg-pp-main,v 1.1 2005/01/18 17:25:13 jlam Exp $
+# $NetBSD: arg-pp-main,v 1.2 2005/01/25 23:27:34 cube Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -51,6 +51,7 @@ case $arg in
$debug_log $wrapperlog " (arg-pp-main) pre: -l$lib"
prepend_queue argbuf "-L$dir"
$debug_log $wrapperlog " (arg-pp-main) pre: -L$dir"
+ argmatch=yes
;;
/*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX
dir="${arg%/lib*}"
@@ -64,6 +65,7 @@ case $arg in
$debug_log $wrapperlog " (arg-pp-main) pre: -l$lib"
prepend_queue argbuf "-L$dir"
$debug_log $wrapperlog " (arg-pp-main) pre: -L$dir"
+ argmatch=yes
;;
/*/lib*.dylib) # Darwin
dir="${arg%/lib*.dylib}"
@@ -76,6 +78,7 @@ case $arg in
$debug_log $wrapperlog " (arg-pp-main) pre: -l$lib"
prepend_queue argbuf "-L$dir"
$debug_log $wrapperlog " (arg-pp-main) pre: -L$dir"
+ argmatch=yes
;;
######################################################################
# Remove extraneous comma in "-Wl,-R,/dir" and in "-Wl,-L,/dir".