3914 |
# See if GNU ld supports shared libraries. |
# See if GNU ld supports shared libraries. |
3915 |
case $host_os in |
case $host_os in |
3916 |
aix3* | aix4* | aix5*) |
aix3* | aix4* | aix5*) |
3917 |
# On AIX, the GNU linker is very broken |
# On AIX/PPC, the GNU linker is very broken |
3918 |
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. |
if test "$host_cpu" != ia64; then |
3919 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
3920 |
cat <<EOF 1>&2 |
cat <<EOF 1>&2 |
3921 |
|
|
3922 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
3923 |
*** to be unable to reliably create shared libraries on AIX. |
*** to be unable to reliably create shared libraries on AIX. |
3926 |
*** so that a non-GNU linker is found, and then restart. |
*** so that a non-GNU linker is found, and then restart. |
3927 |
|
|
3928 |
EOF |
EOF |
3929 |
|
fi |
3930 |
;; |
;; |
3931 |
|
|
3932 |
amigaos*) |
amigaos*) |
4172 |
# On IA64, the linker does run time linking by default, so we don't |
# On IA64, the linker does run time linking by default, so we don't |
4173 |
# have to do anything special. |
# have to do anything special. |
4174 |
aix_use_runtimelinking=no |
aix_use_runtimelinking=no |
4175 |
exp_sym_flag='-Bexport' |
if test $with_gnu_ld = no; then |
4176 |
|
exp_sym_flag='-Bexport' |
4177 |
|
fi |
4178 |
no_entry_flag="" |
no_entry_flag="" |
4179 |
else |
else |
4180 |
# Test if we are trying to use run time linking, or normal AIX style |
# Test if we are trying to use run time linking, or normal AIX style |
4201 |
_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" |
_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" |
4202 |
else |
else |
4203 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
4204 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
if test $with_gnu_ld = no; then |
4205 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
4206 |
_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" |
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
4207 |
|
_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" |
4208 |
|
fi |
4209 |
else |
else |
4210 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
4211 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |