Ignore:
Timestamp:
Apr 27, 2004, 8:39:34 PM (21 years ago)
Author:
bird
Message:

GCC v3.3.3 sources.

Location:
branches/GNU/src/gcc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gcc

    • Property svn:ignore
      •  

        old new  
        2626configure.vr
        2727configure.vrs
         28dir.info
        2829Makefile
        29 dir.info
        3030lost+found
        3131update.out
  • branches/GNU/src/gcc/ltcf-cxx.sh

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    33# ltcf-cxx.sh - Create a C++ compiler specific configuration
    44#
    5 # Copyright (C) 1996-1999, 2000, 2001 Free Software Foundation, Inc.
     5# Copyright (C) 1996-1999, 2000, 2001, 2003 Free Software Foundation, Inc.
    66# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
    77#
     
    6969
    7070  # Check if GNU C++ uses GNU ld as the underlying linker, since the
    71   # archiving commands below assume that GNU ld is being used.
    72   if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
    73       egrep 'GNU ld' > /dev/null; then
    74     with_gnu_ld=yes
    75 
     71  # archiving commands below assume that GNU ld is being used.  The
     72  # assumption here is that the linker is going to be the same as that
     73  # used by the C compiler.  For the purposes of GCC, this is ok, but
     74  # if someone uses g++ along with a non-GNU C compiler that doesn't
     75  # use GNU ld, we may lose.  This is ok for the toolchain tree, since
     76  # the only users of ltcf-cxx.sh are libstdc++-v3 and libjava,
     77  # anyway, and those use both gcc and g++, so the settings are bound
     78  # to be the same.
     79
     80  if test "$with_gnu_ld" = yes; then
    7681    archive_cmds='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    7782    archive_expsym_cmds='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     
    9398    fi
    9499  else
    95     with_gnu_ld=no
    96100    wlarc=
    97101
     
    111115else
    112116  with_gcc=no
    113   with_gnu_ld=no
    114117  wlarc=
    115118fi
     
    251254  hpux*)
    252255    if test $with_gnu_ld = no; then
    253       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
     256      case "$host_cpu" in
     257        ia64*)
     258          hardcode_libdir_flag_spec='-L$libdir'
     259          hardcode_shlibpath_var=no ;;
     260        *)
     261          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' ;;
     262      esac
     263      hardcode_direct=yes
    254264      hardcode_libdir_separator=:
    255265      export_dynamic_flag_spec='${wl}-E'
    256266    fi
    257     hardcode_direct=yes
    258267    hardcode_minus_L=yes # Not in the search PATH, but as the default
    259268                         # location of the library.
     
    284293            case "$host_os" in
    285294            hpux9*) archive_cmds='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
    286             *) archive_cmds='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;;
     295            *)
     296              case "$host_cpu" in
     297                ia64*)
     298                  archive_cmds='$LD -b +h $soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' ;;
     299                *)
     300                  archive_cmds='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;;
     301              esac
     302              ;;
    287303            esac
    288304          fi
     
    311327            archive_cmds='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
    312328          else
    313             archive_cmds='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
     329            archive_cmds='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
    314330          fi
    315331        fi
     
    598614          no_undefined_flag=' ${wl}-z ${wl}defs'
    599615          if $CC --version | egrep -v '^2\.7' > /dev/null; then
    600             archive_cmds='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
     616            archive_cmds='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
    601617            archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    602                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
     618                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
    603619
    604620            # Commands to make compiler produce verbose output that lists
     
    609625            # g++ 2.7 appears to require `-G' NOT `-shared' on this
    610626            # platform.
    611             archive_cmds='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
     627            archive_cmds='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
    612628            archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    613                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
     629                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
    614630
    615631            # Commands to make compiler produce verbose output that lists
Note: See TracChangeset for help on using the changeset viewer.