[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] AIX5/IA64 fixes
From: |
Robert Boehne |
Subject: |
Re: [PATCH] AIX5/IA64 fixes |
Date: |
Mon, 09 Jul 2001 12:42:44 -0500 |
Robert Boehne wrote:
>
> Timothy:
>
> In that case, I'll rework your patch to our CVS head (simple enough)
> and install it in the multi-language-branch.
>
> Thanks,
>
> Robert
>
Here are the patches for MLB and Head, OK to commit?
Robert
--
Robert Boehne Software Engineer
Ricardo Software Chicago Technical Center
TEL: (630)789-0003 x. 238
FAX: (630)789-0127
email: address@hidden
2001-07-06 Timothy Wall <address@hidden>
* ltcf-c.sh: Don't disable shlibs on AIX5/IA64.
* ltcf-cxx.sh: Keep gnu defaults if using gnu tools on AIX5/IA64.
Index: ltcf-c.sh
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/ltcf-c.sh,v
retrieving revision 1.1.2.38
diff -u -r1.1.2.38 ltcf-c.sh
--- ltcf-c.sh 2001/06/04 19:32:48 1.1.2.38
+++ ltcf-c.sh 2001/07/09 17:39:43
@@ -58,9 +58,10 @@
# See if GNU ld supports shared libraries.
case $host_os in
aix3* | aix4* | aix5*)
- # On AIX, the GNU linker is very broken
- ld_shlibs=no
- cat <<EOF 1>&2
+ # On AIX/PPC, the GNU linker is very broken
+ if test "$host_cpu" != ia64; then
+ ld_shlibs=no
+ cat <<EOF 1>&2
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
@@ -69,6 +70,7 @@
*** so that a non-GNU linker is found, and then restart.
EOF
+ fi
;;
amigaos*)
Index: ltcf-cxx.sh
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/ltcf-cxx.sh,v
retrieving revision 1.1.2.47
diff -u -r1.1.2.47 ltcf-cxx.sh
--- ltcf-cxx.sh 2001/05/28 20:59:25 1.1.2.47
+++ ltcf-cxx.sh 2001/07/09 17:39:43
@@ -165,7 +165,9 @@
# On IA64, the linker does run time linking by default, so we don't
# have to do anything special.
aix_use_runtimelinking=no
- exp_sym_flag='-Bexport'
+ if test $with_gnu_ld = no; then
+ exp_sym_flag='-Bexport'
+ fi
no_entry_flag=""
else
# Test if we are trying to use run time linking, or normal AIX style
linking.
@@ -189,9 +191,11 @@
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname
$libobjs $deplibs $compiler_flags ${allow_undefined_flag}
'"\${wl}$no_entry_flag \${wl}-brtl \${wl}$exp_sym_flag:\$export_symbols"
else
if test "$host_cpu" = ia64; then
- hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
- allow_undefined_flag="-z nodefs"
- archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname
$libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag}
'"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
+ if test $with_gnu_ld = no; then
+ hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
+ allow_undefined_flag="-z nodefs"
+ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname
$libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag}
'"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
+ fi
else
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
# Warning - without using the other run time loading flags, -berok will
2001-07-09 Timothy Wall <address@hidden>
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): Don't disable shlibs
on AIX5/IA64 with GNU ld. Keep gnu defaults if using gnu tools
on AIX5/IA64.
Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libtool.m4,v
retrieving revision 1.186
diff -u -r1.186 libtool.m4
--- libtool.m4 2001/07/06 01:08:58 1.186
+++ libtool.m4 2001/07/09 17:29:32
@@ -3906,10 +3906,10 @@
# See if GNU ld supports shared libraries.
case $host_os in
aix3* | aix4* | aix5*)
- # On AIX, the GNU linker is very broken
- # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- cat <<EOF 1>&2
+ # On AIX/PPC, the GNU linker is very broken
+ if test "$host_cpu" != ia64; then
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ cat <<EOF 1>&2
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
@@ -3918,6 +3918,7 @@
*** so that a non-GNU linker is found, and then restart.
EOF
+ fi
;;
amigaos*)
@@ -4163,7 +4164,9 @@
# On IA64, the linker does run time linking by default, so we don't
# have to do anything special.
aix_use_runtimelinking=no
- exp_sym_flag='-Bexport'
+ if test $with_gnu_ld = no; then
+ exp_sym_flag='-Bexport'
+ fi
no_entry_flag=""
else
# Test if we are trying to use run time linking, or normal AIX style
@@ -4190,9 +4193,11 @@
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o
$output_objdir/$soname $libobjs $deplibs $compiler_flags
${allow_undefined_flag} '"\${wl}$no_entry_flag
\${wl}$exp_sym_flag:\$export_symbols"
else
if test "$host_cpu" = ia64; then
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R
$libdir:/usr/lib:/lib'
- _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o
$output_objdir/$soname $libobjs $deplibs $compiler_flags
${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag
\${wl}$exp_sym_flag:\$export_symbols"
+ if test $with_gnu_ld = no; then
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R
$libdir:/usr/lib:/lib'
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o
$output_objdir/$soname $libobjs $deplibs $compiler_flags
${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag
\${wl}$exp_sym_flag:\$export_symbols"
+ fi
else
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-bnolibpath
${wl}-blibpath:$libdir:/usr/lib:/lib'
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'