summaryrefslogtreecommitdiff
path: root/mk/wrapper
diff options
context:
space:
mode:
authorrillig <rillig>2007-02-18 23:49:44 +0000
committerrillig <rillig>2007-02-18 23:49:44 +0000
commit1b6d9bafa023453b9fc462d1a40be11a7c20062c (patch)
tree0f64bbe0abf4b70779a71a1568c0a108d4eb2563 /mk/wrapper
parent341ac29f532a0c5e9c44291e8df2fb5fe76a060c (diff)
downloadpkgsrc-1b6d9bafa023453b9fc462d1a40be11a7c20062c.tar.gz
Documented WRAPPER_REORDER_CMDS.
Diffstat (limited to 'mk/wrapper')
-rw-r--r--mk/wrapper/bsd.wrapper.mk17
1 files changed, 15 insertions, 2 deletions
diff --git a/mk/wrapper/bsd.wrapper.mk b/mk/wrapper/bsd.wrapper.mk
index 7137d75f729..f26c9a5e5d7 100644
--- a/mk/wrapper/bsd.wrapper.mk
+++ b/mk/wrapper/bsd.wrapper.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.wrapper.mk,v 1.63 2007/02/06 20:33:50 rillig Exp $
+# $NetBSD: bsd.wrapper.mk,v 1.64 2007/02/18 23:49:44 rillig Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -34,6 +34,19 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
+# Package-settable variables:
+#
+# WRAPPER_REORDER_CMDS
+# A list of library reordering specifications to make sure that the
+# linker sees the libraries in the correct order.
+#
+# Each of the specifications has the form reorder:l:foo:bar, which
+# means that -lfoo will always come before -lbar in the linker
+# command line.
+#
+# Keywords: libs order reorder wrapper
+#
+
.include "../../mk/wrapper/wrapper-defs.mk"
# pkgsrc bmake does not (yet) correctly handle ${VAR} > 0 because
@@ -82,7 +95,7 @@ MAKE_ENV+= WRAPPER_UPDATE_CACHE=${WRAPPER_UPDATE_CACHE:Q}
# Only do the (expensive) reordering step if we have reordering
# transformations.
-#
+
WRAPPER_REORDER_CMDS?= # empty
.if !empty(WRAPPER_REORDER_CMDS)
MAKE_ENV+= WRAPPER_REORDER=yes