Changeset 1391 for branches/GNU/src/gcc/ltcf-cxx.sh
- Timestamp:
- Apr 27, 2004, 8:39:34 PM (21 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 dir.info 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/ltcf-cxx.sh
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 3 3 # ltcf-cxx.sh - Create a C++ compiler specific configuration 4 4 # 5 # Copyright (C) 1996-1999, 2000, 2001 Free Software Foundation, Inc.5 # Copyright (C) 1996-1999, 2000, 2001, 2003 Free Software Foundation, Inc. 6 6 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 7 7 # … … 69 69 70 70 # 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 76 81 archive_cmds='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 77 82 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' … … 93 98 fi 94 99 else 95 with_gnu_ld=no96 100 wlarc= 97 101 … … 111 115 else 112 116 with_gcc=no 113 with_gnu_ld=no114 117 wlarc= 115 118 fi … … 251 254 hpux*) 252 255 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 254 264 hardcode_libdir_separator=: 255 265 export_dynamic_flag_spec='${wl}-E' 256 266 fi 257 hardcode_direct=yes258 267 hardcode_minus_L=yes # Not in the search PATH, but as the default 259 268 # location of the library. … … 284 293 case "$host_os" in 285 294 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 ;; 287 303 esac 288 304 fi … … 311 327 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' 312 328 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' 314 330 fi 315 331 fi … … 598 614 no_undefined_flag=' ${wl}-z ${wl}defs' 599 615 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' 601 617 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' 603 619 604 620 # Commands to make compiler produce verbose output that lists … … 609 625 # g++ 2.7 appears to require `-G' NOT `-shared' on this 610 626 # 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' 612 628 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' 614 630 615 631 # Commands to make compiler produce verbose output that lists -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.