[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Honor -brtl when using GCC on AIX
From: |
Albert Chin |
Subject: |
Honor -brtl when using GCC on AIX |
Date: |
Mon, 13 Dec 2004 01:58:46 -0600 |
User-agent: |
Mutt/1.5.6i |
When using GCC, libtool doesn't append -G to the link command-line
like it does for the IBM compiler (xlc/xlC). Patch against branch-1-5.
--
albert chin (address@hidden)
-- snip snip
2004-12-13 Albert Chin-A-Young <address@hidden>
* libtool.m4: Append -G to link command-line on AIX to
honor -brtl on command-line (runtime linking). Already
done for IBM C/C++ compilers.
Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/libtool.m4,v
retrieving revision 1.314.2.52
diff -u -3 -p -r1.314.2.52 libtool.m4
--- libtool.m4 24 Nov 2004 17:22:03 -0000 1.314.2.52
+++ libtool.m4 13 Dec 2004 07:55:52 -0000
@@ -2797,6 +2797,9 @@ case $host_os in
fi
esac
shared_flag='-shared'
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag="$shared_flag "'${wl}-G'
+ fi
else
# not using gcc
if test "$host_cpu" = ia64; then
@@ -5379,6 +5382,9 @@ $echo "local: *; };" >> $output_objdir/$
fi
esac
shared_flag='-shared'
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag="$shared_flag "'${wl}-G'
+ fi
else
# not using gcc
if test "$host_cpu" = ia64; then
- Honor -brtl when using GCC on AIX,
Albert Chin <=