Thu Nov 27 18:01:17 2008 UTC ()
Explicitly pass down -brtl for the linker, not the compiler. From Jens
Rehsack.


(joerg)
diff -r1.5 -r1.6 pkgsrc/mk/wrapper/cmd-sink-aix-xlc

cvs diff -r1.5 -r1.6 pkgsrc/mk/wrapper/cmd-sink-aix-xlc (expand / switch to unified diff)

--- pkgsrc/mk/wrapper/cmd-sink-aix-xlc 2008/11/14 14:04:12 1.5
+++ pkgsrc/mk/wrapper/cmd-sink-aix-xlc 2008/11/27 18:01:17 1.6
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: cmd-sink-aix-xlc,v 1.5 2008/11/14 14:04:12 joerg Exp $ 1# $NetBSD: cmd-sink-aix-xlc,v 1.6 2008/11/27 18:01:17 joerg Exp $
2# 2#
3# Copyright (c) 2004 The NetBSD Foundation, Inc. 3# Copyright (c) 2004 The NetBSD Foundation, Inc.
4# All rights reserved. 4# All rights reserved.
5# 5#
6# This code is derived from software contributed to The NetBSD Foundation 6# This code is derived from software contributed to The NetBSD Foundation
7# by Johnny C. Lam. 7# by Johnny C. Lam.
8# 8#
9# Redistribution and use in source and binary forms, with or without 9# Redistribution and use in source and binary forms, with or without
10# modification, are permitted provided that the following conditions 10# modification, are permitted provided that the following conditions
11# are met: 11# are met:
12# 1. Redistributions of source code must retain the above copyright 12# 1. Redistributions of source code must retain the above copyright
13# notice, this list of conditions and the following disclaimer. 13# notice, this list of conditions and the following disclaimer.
14# 2. Redistributions in binary form must reproduce the above copyright 14# 2. Redistributions in binary form must reproduce the above copyright
@@ -79,17 +79,17 @@ done @@ -79,17 +79,17 @@ done
79arg="-Wl,-blibpath:/usr/usr/lib:/lib" 79arg="-Wl,-blibpath:/usr/usr/lib:/lib"
80if $test -n "$orig_blibpath"; then 80if $test -n "$orig_blibpath"; then
81 arg="$arg:$orig_blibpath" 81 arg="$arg:$orig_blibpath"
82fi 82fi
83if $test -n "$blibpath"; then 83if $test -n "$blibpath"; then
84 arg="$arg:$blibpath" 84 arg="$arg:$blibpath"
85fi 85fi
86$debug_log $wrapperlog " (cmd-sink-aix-xlc) pop: $arg" 86$debug_log $wrapperlog " (cmd-sink-aix-xlc) pop: $arg"
87. $buildcmd 87. $buildcmd
88 88
89# Force dynamic linkage on AIX to get preference of dynamic libraries 89# Force dynamic linkage on AIX to get preference of dynamic libraries
90# over library archives. 90# over library archives.
91if $test "$dont_link" != "yes"; then 91if $test "$dont_link" != "yes"; then
92 arg="-brtl" 92 arg="-Wl,-brtl"
93 $debug_log $wrapperlog " (cmd-sink-aix-xlc) pop: $arg" 93 $debug_log $wrapperlog " (cmd-sink-aix-xlc) pop: $arg"
94 . $buildcmd 94 . $buildcmd
95fi 95fi