Commit 898c7238 by Alexandre Oliva Committed by Alexandre Oliva

backport: ltcf-c.sh: Use $objext, not $ac_objext.

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.

From-SVN: r45341
parent 4049df42
2001-08-31 Alexandre Oliva <aoliva@redhat.com>
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.
2001-08-30 Eric Christopher <echristo@redhat.com> 2001-08-30 Eric Christopher <echristo@redhat.com>
Jason Eckhardt <jle@redhat.com> Jason Eckhardt <jle@redhat.com>
...@@ -5,7 +22,6 @@ ...@@ -5,7 +22,6 @@
* config.sub: Merge from master sources, add support for mipsisa32. * config.sub: Merge from master sources, add support for mipsisa32.
2001-08-25 Geoffrey Keating <geoffk@redhat.com> 2001-08-25 Geoffrey Keating <geoffk@redhat.com>
* config.sub: Merge from master sources, rev 1.219. * config.sub: Merge from master sources, rev 1.219.
* MAINTAINERS: Add self as contact for stormy16 port. * MAINTAINERS: Add self as contact for stormy16 port.
......
...@@ -58,7 +58,8 @@ if test "$with_gnu_ld" = yes; then ...@@ -58,7 +58,8 @@ if test "$with_gnu_ld" = yes; then
# See if GNU ld supports shared libraries. # See if GNU ld supports shared libraries.
case $host_os in case $host_os in
aix3* | aix4* | aix5*) aix3* | aix4* | aix5*)
# On AIX, the GNU linker is very broken # On AIX/PPC, the GNU linker is very broken
if test "$host_cpu" != ia64; then
ld_shlibs=no ld_shlibs=no
cat <<EOF 1>&2 cat <<EOF 1>&2
...@@ -69,6 +70,7 @@ if test "$with_gnu_ld" = yes; then ...@@ -69,6 +70,7 @@ if test "$with_gnu_ld" = yes; then
*** so that a non-GNU linker is found, and then restart. *** so that a non-GNU linker is found, and then restart.
EOF EOF
fi
;; ;;
amigaos*) amigaos*)
...@@ -311,8 +313,10 @@ else ...@@ -311,8 +313,10 @@ else
# 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
# have to do anything special. # have to do anything special.
aix_use_runtimelinking=no aix_use_runtimelinking=no
if test $with_gnu_ld = no; then
exp_sym_flag='-Bexport' exp_sym_flag='-Bexport'
no_entry_flag="" no_entry_flag=""
fi
else else
# Test if we are trying to use run time linking, or normal AIX style linking. # 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. # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
...@@ -336,9 +340,11 @@ else ...@@ -336,9 +340,11 @@ else
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" archive_expsym_cmds="\$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 else
if test "$host_cpu" = ia64; then if test "$host_cpu" = ia64; then
if test $with_gnu_ld = no; then
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
allow_undefined_flag="-z nodefs" 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" 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 else
allow_undefined_flag=' ${wl}-berok' allow_undefined_flag=' ${wl}-berok'
# -bexpall does not export symbols beginning with underscore (_) # -bexpall does not export symbols beginning with underscore (_)
...@@ -783,7 +789,7 @@ if test "$enable_shared" = yes && test "$with_gcc" = yes; then ...@@ -783,7 +789,7 @@ if test "$enable_shared" = yes && test "$with_gcc" = yes; then
cat conftest.err 1>&5 cat conftest.err 1>&5
soname=conftest soname=conftest
lib=conftest lib=conftest
libobjs=conftest.$ac_objext libobjs=conftest.$objext
deplibs= deplibs=
wl=$ac_cv_prog_cc_wl wl=$ac_cv_prog_cc_wl
compiler_flags=-v compiler_flags=-v
......
...@@ -165,8 +165,10 @@ case $host_os in ...@@ -165,8 +165,10 @@ case $host_os in
# 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
# have to do anything special. # have to do anything special.
aix_use_runtimelinking=no aix_use_runtimelinking=no
if test $with_gnu_ld = no; then
exp_sym_flag='-Bexport' exp_sym_flag='-Bexport'
no_entry_flag="" no_entry_flag=""
fi
else else
# Test if we are trying to use run time linking, or normal AIX style linking. # 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. # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
...@@ -189,9 +191,11 @@ case $host_os in ...@@ -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" 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 else
if test "$host_cpu" = ia64; then if test "$host_cpu" = ia64; then
if test $with_gnu_ld = no; then
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
allow_undefined_flag="-z nodefs" 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" 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 else
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
# Warning - without using the other run time loading flags, -berok will # Warning - without using the other run time loading flags, -berok will
...@@ -242,6 +246,8 @@ case $host_os in ...@@ -242,6 +246,8 @@ case $host_os in
# conventions # conventions
ld_shlibs=yes ld_shlibs=yes
;; ;;
gnu*)
;;
hpux*) hpux*)
if test $with_gnu_ld = no; then if test $with_gnu_ld = no; then
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
...@@ -740,6 +746,8 @@ else ...@@ -740,6 +746,8 @@ else
freebsd*) freebsd*)
# FreeBSD uses GNU C++ # FreeBSD uses GNU C++
;; ;;
gnu*)
;;
hpux9* | hpux10* | hpux11*) hpux9* | hpux10* | hpux11*)
case $cc_basename in case $cc_basename in
CC) CC)
......
...@@ -60,8 +60,9 @@ if test "$with_gnu_ld" = yes; then ...@@ -60,8 +60,9 @@ if test "$with_gnu_ld" = yes; then
# See if GNU ld supports shared libraries. # See if GNU ld supports shared libraries.
case $host_os in case $host_os in
aix3* | aix4*) aix3* | aix4* | aix5*)
# On AIX, the GNU linker is very broken # On AIX/PPC, the GNU linker is very broken
if test "$host_cpu" != ia64; then
ld_shlibs=no ld_shlibs=no
cat <<EOF 1>&2 cat <<EOF 1>&2
...@@ -72,6 +73,7 @@ if test "$with_gnu_ld" = yes; then ...@@ -72,6 +73,7 @@ if test "$with_gnu_ld" = yes; then
*** so that a non-GNU linker is found, and then restart. *** so that a non-GNU linker is found, and then restart.
EOF EOF
fi
;; ;;
amigaos*) amigaos*)
...@@ -304,8 +306,10 @@ else ...@@ -304,8 +306,10 @@ else
# 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
# have to do anything special. # have to do anything special.
aix_use_runtimelinking=no aix_use_runtimelinking=no
if test $with_gnu_ld = no; then
exp_sym_flag='-Bexport' exp_sym_flag='-Bexport'
no_entry_flag="" no_entry_flag=""
fi
else else
# Test if we are trying to use run time linking, or normal AIX style linking. # 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. # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
...@@ -329,9 +333,11 @@ else ...@@ -329,9 +333,11 @@ else
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" archive_expsym_cmds="\$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 else
if test "$host_cpu" = ia64; then if test "$host_cpu" = ia64; then
if test $with_gnu_ld = no; then
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
allow_undefined_flag="-z nodefs" 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" 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 else
allow_undefined_flag=' ${wl}-berok' allow_undefined_flag=' ${wl}-berok'
# -bexpall does not export symbols beginning with underscore (_) # -bexpall does not export symbols beginning with underscore (_)
......
...@@ -181,8 +181,8 @@ progname=`$echo "X$0" | $Xsed -e 's%^.*/%%'` ...@@ -181,8 +181,8 @@ progname=`$echo "X$0" | $Xsed -e 's%^.*/%%'`
# Constants: # Constants:
PROGRAM=ltconfig PROGRAM=ltconfig
PACKAGE=libtool PACKAGE=libtool
VERSION=1.4a VERSION=1.4a-GCC3.0
TIMESTAMP=" (1.641.2.256 2001/05/28 20:09:07)" TIMESTAMP=" (1.641.2.256 2001/05/28 20:09:07 with GCC-local changes)"
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
rm="rm -f" rm="rm -f"
...@@ -791,7 +791,7 @@ else ...@@ -791,7 +791,7 @@ else
= "XX$testring" && = "XX$testring" &&
new_result=`expr "X$testring" : ".*" 2>&1` && new_result=`expr "X$testring" : ".*" 2>&1` &&
lt_cv_sys_max_cmd_len=$new_result && lt_cv_sys_max_cmd_len=$new_result &&
test $i != 18 # 1 MB should be enough test $i != 17 # 1/2 MB should be enough
do do
i=`expr $i + 1` i=`expr $i + 1`
testring=$testring$testring testring=$testring$testring
......
...@@ -55,8 +55,8 @@ modename="$progname" ...@@ -55,8 +55,8 @@ modename="$progname"
# Constants. # Constants.
PROGRAM=ltmain.sh PROGRAM=ltmain.sh
PACKAGE=libtool PACKAGE=libtool
VERSION=1.4a VERSION=1.4a-GCC3.0
TIMESTAMP=" (1.641.2.256 2001/05/28 20:09:07)" TIMESTAMP=" (1.641.2.256 2001/05/28 20:09:07 with GCC-local changes)"
default_mode= default_mode=
help="Try \`$progname --help' for more information." help="Try \`$progname --help' for more information."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment