summaryrefslogtreecommitdiff
path: root/ltcf-c.sh
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-09 21:41:11 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-09 21:41:11 +0000
commita6fdcbb2354d94f60ee40aba178a367a19985e5d (patch)
tree4ab6bf8dba606356735a973fb895568471fd5a29 /ltcf-c.sh
parentf78cf493057d08da63ac3237c13b0cf14ccdda50 (diff)
downloadgcc-a6fdcbb2354d94f60ee40aba178a367a19985e5d.tar.gz
* ltcf-c.sh (aix4): Improve shared library configuration; require
exporting symbols. * ltcf-cxx.sh (aix4): Define. * ltconfig (aix4): Define library and soname specs appropriate for AIX. Define command to create export symbols list. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37347 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'ltcf-c.sh')
-rw-r--r--ltcf-c.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/ltcf-c.sh b/ltcf-c.sh
index e57abb1cb2b..6bccb11c5d6 100644
--- a/ltcf-c.sh
+++ b/ltcf-c.sh
@@ -277,13 +277,13 @@ else
hardcode_direct=yes
fi
allow_undefined_flag=' ${wl}-berok'
- archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
- archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
- case "$host_os" in aix4.[01]|aix4.[01].*)
- # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
- always_export_symbols=yes ;;
- esac
- ;;
+ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+ # -bexpall does not export symbols beginning with underscore (_)
+ always_export_symbols=yes
+ # Exported symbols can be pulled into shared objects from archives
+ whole_archive_flag_spec=' '
+ build_libtool_need_lc=yes
+ ;;
amigaos*)
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'