1999-04-25 Alexandre Oliva <oliva@dcc.unicamp.br>
+ * ltconfig.in (aix4*, allow_undefined_flag): Set to -berok.
+ (aix4*, shared_flag): Set to -shared or ${wl}-bM:SRE.
+ (aix4*, archive_cmds): Use -bexpall.
+ (aix4*, archive_cmds, archive_expsym_cmds): Use shared_flag and
+ allow_undefined_flag.
+ (aix4*, always_export_symbols): Set to yes up to AIX 4.1.*,
+ because -bexpall is supported from 4.2 on.
+ Reported by Greg Wooledge
+ <ic5035%tss1crs.amgreetings.com@rose.amgreetings.com>
+
* ltconfig.in (hpux*, hardcode_minus_L): Set to yes.
(hpux*, hardcode_libdir_flag_spec): Do not use +s by default.
(hpux*, shlibpath_overrides_runpath): Set to no.
;;
aix4*)
- allow_undefined_flag=
hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
hardcode_libdir_separator=':'
if test "$with_gcc" = yes; then
hardcode_libdir_flag_spec='-L$libdir'
hardcode_libdir_separator=
fi
- archive_cmds='$CC -shared ${wl}-bnoentry -o $objdir/$soname $libobjs $deplibs $linkopts'
+ shared_flag='-shared'
else
- always_export_symbols=yes
- archive_expsym_cmds='$CC -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bE:$export_symbols ${wl}-bM:SRE ${wl}-bnoentry'
+ shared_flag='${wl}-bM:SRE'
hardcode_direct=yes
fi
+ allow_undefined_flag=' ${wl}-berok'
+ archive_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
+ archive_expsym_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
+ case "$host_os" in 4.[01]|4.[01].*)
+ # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
+ always_export_symbols=yes ;;
+ esac
;;
amigaos*)