summaryrefslogtreecommitdiff
path: root/mk/wrapper
diff options
context:
space:
mode:
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