summaryrefslogtreecommitdiff
path: root/ltcf-cxx.sh
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-01 00:47:19 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-01 00:47:19 +0000
commitdebdecb85f65b7418b0102076d34a2aca15c541a (patch)
treebc2984bfb2b1b54d4c65f4a379d660688e3ec249 /ltcf-cxx.sh
parent212c093ef86453d7d74f9c26d506a376d32b37b9 (diff)
downloadgcc-debdecb85f65b7418b0102076d34a2aca15c541a.tar.gz
Merged from gcc-3_0-branch:
2001-07-30 Jeff Sturm <jsturm@one-pont.com> * ltcf-c.sh: Use $objext, not $ac_objext. 2001-07-27 Mark Kettenis <kettenis@gnu.org> * ltcf-cxx.sh: Add support for GNU. 2001-07-22 Timothy Wall <twall@redhat.com> * ltcf-c.sh: Don't disable shared libraries for AIX5/IA64. Preserve default settings if using GNU tools with that configuration. * ltcf-cxx.sh: Ditto. * ltcf-gcj.sh: Ditto. 2001-07-21 Michael Chastain <chastain@redhat.com> * ltconfig: Set max_cmd_len to a maximum of 512Kb, as it seems some HPUX 11.0 systems have trouble with 1MB. Mark as gcc-local. * ltmain.sh: Mark as gcc-local. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45341 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'ltcf-cxx.sh')
-rw-r--r--ltcf-cxx.sh18
1 files changed, 13 insertions, 5 deletions
diff --git a/ltcf-cxx.sh b/ltcf-cxx.sh
index 6079645c644..22875d06f18 100644
--- a/ltcf-cxx.sh
+++ b/ltcf-cxx.sh
@@ -165,8 +165,10 @@ case $host_os in
# 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'
- no_entry_flag=""
+ if test $with_gnu_ld = no; then
+ exp_sym_flag='-Bexport'
+ no_entry_flag=""
+ fi
else
# Test if we are trying to use run time linking, or normal AIX style linking.
# If -brtl is somewhere in LDFLAGS, we need to do run time linking.
@@ -189,9 +191,11 @@ case $host_os in
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
@@ -242,6 +246,8 @@ case $host_os in
# conventions
ld_shlibs=yes
;;
+ gnu*)
+ ;;
hpux*)
if test $with_gnu_ld = no; then
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
@@ -740,6 +746,8 @@ else
freebsd*)
# FreeBSD uses GNU C++
;;
+ gnu*)
+ ;;
hpux9* | hpux10* | hpux11*)
case $cc_basename in
CC)