summaryrefslogtreecommitdiff
path: root/mk/wrapper
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-10-05 18:19:45 +0000
committerjoerg <joerg@pkgsrc.org>2007-10-05 18:19:45 +0000
commitd05706a37408a4b1dd732ecb0865e8d784ed8805 (patch)
tree49ff69c4630a09770882eb67fadf8e3f2998e271 /mk/wrapper
parentf1f252ae9f347e562664f6e0cd054aba958c5265 (diff)
downloadpkgsrc-d05706a37408a4b1dd732ecb0865e8d784ed8805.tar.gz
When linking with XLC on AIX, force -brtl to get linkage behaviour we
expect from other platforms.
Diffstat (limited to 'mk/wrapper')
-rw-r--r--mk/wrapper/cmd-sink-aix-xlc9
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/wrapper/cmd-sink-aix-xlc b/mk/wrapper/cmd-sink-aix-xlc
index cc4142656c1..65672eb57ee 100644
--- a/mk/wrapper/cmd-sink-aix-xlc
+++ b/mk/wrapper/cmd-sink-aix-xlc
@@ -1,4 +1,4 @@
-# $NetBSD: cmd-sink-aix-xlc,v 1.3 2005/07/23 04:48:12 grant Exp $
+# $NetBSD: cmd-sink-aix-xlc,v 1.4 2007/10/05 18:19:45 joerg Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -72,3 +72,10 @@ if $test -n "$blibpath"; then
$debug_log $wrapperlog " (cmd-sink-aix-xlc) pop: $arg"
. $buildcmd
fi
+# Force dynamic linkage on AIX to get preference of dynamic libraries
+# over library archives.
+if $test "$dont_link" != "yes"; then
+ arg="-brtl"
+ $debug_log $wrapperlog " (cmd-sink-aix-xlc) pop: $arg"
+ . $buildcmd
+fi