summaryrefslogtreecommitdiff
path: root/mk/buildlink3/wrapper.sh
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-02-12 20:29:34 +0000
committerjlam <jlam@pkgsrc.org>2004-02-12 20:29:34 +0000
commit4beeebf425c4968265ed13c0d8f3f1e40021f81d (patch)
tree487b9031197167bb96126c0e8c7a32844947d983 /mk/buildlink3/wrapper.sh
parentbf3e309dc8d8236afbfefe3f1a947f8d1a7d5eb1 (diff)
downloadpkgsrc-4beeebf425c4968265ed13c0d8f3f1e40021f81d.tar.gz
Move a test from the reorderlibs script out to the wrapper scripts for
efficiency reasons.
Diffstat (limited to 'mk/buildlink3/wrapper.sh')
-rw-r--r--mk/buildlink3/wrapper.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/buildlink3/wrapper.sh b/mk/buildlink3/wrapper.sh
index 17af9efc10d..372d6d863e3 100644
--- a/mk/buildlink3/wrapper.sh
+++ b/mk/buildlink3/wrapper.sh
@@ -1,6 +1,6 @@
#!@BUILDLINK_SHELL@
#
-# $NetBSD: wrapper.sh,v 1.10 2004/01/30 10:56:11 jlam Exp $
+# $NetBSD: wrapper.sh,v 1.11 2004/02/12 20:29:34 jlam Exp $
Xsed='@SED@ -e 1s/^X//'
sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
@@ -80,7 +80,9 @@ done
# Reorder the libraries so that the library dependencies are correct.
case $reorder in
yes)
- . $reorderlibs
+ if $test -n "$libs"; then
+ . $reorderlibs
+ fi
;;
esac