Changeset 1103
- Timestamp:
- Jan 29, 2004, 7:37:01 PM (22 years ago)
- Location:
- trunk/src/gcc
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gcc/libtool.m4
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r1102 r1103 145 145 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 146 146 if AC_TRY_EVAL(ac_compile); then 147 if test "$lt_cv_prog_gnu_ld" = yes; then 148 case `/usr/bin/file conftest.$ac_objext` in 149 *32-bit*) 150 LD="${LD-ld} -melf32bsmip" 151 ;; 152 *N32*) 153 LD="${LD-ld} -melf32bmipn32" 154 ;; 155 *64-bit*) 156 LD="${LD-ld} -melf64bmip" 157 ;; 158 esac 159 else 147 160 case `/usr/bin/file conftest.$ac_objext` in 148 161 *32-bit*) … … 154 167 *64-bit*) 155 168 LD="${LD-ld} -64" 169 ;; 170 esac 171 fi 172 fi 173 rm -rf conftest* 174 ;; 175 176 ia64-*-hpux*) 177 # Find out which ABI we are using. 178 echo 'int i;' > conftest.$ac_ext 179 if AC_TRY_EVAL(ac_compile); then 180 case "`/usr/bin/file conftest.o`" in 181 *ELF-32*) 182 HPUX_IA64_MODE="32" 183 ;; 184 *ELF-64*) 185 HPUX_IA64_MODE="64" 156 186 ;; 157 187 esac … … 569 599 570 600 hpux10.20*|hpux11*) 571 lt_cv_deplibs_check_method=['file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'] 601 case $host_cpu in 602 hppa*) 603 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'] 572 604 lt_cv_file_magic_cmd=/usr/bin/file 573 605 lt_cv_file_magic_test_file=/usr/lib/libc.sl 606 ;; 607 ia64*) 608 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'] 609 lt_cv_file_magic_cmd=/usr/bin/file 610 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 611 ;; 612 esac 574 613 ;; 575 614 … … 598 637 linux-gnu*) 599 638 case $host_cpu in 600 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )639 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* ) 601 640 lt_cv_deplibs_check_method=pass_all ;; 602 641 *) … … 629 668 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 630 669 lt_cv_file_magic_test_file=/shlib/libc.so 631 lt_cv_deplibs_check_method=pass_all632 ;;633 634 os2*)635 670 lt_cv_deplibs_check_method=pass_all 636 671 ;; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/ltcf-c.sh
-
Property cvs2svn:cvs-rev
changed from
1.4
to1.5
r1102 r1103 109 109 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //; p; }" -e d < $0 > $output_objdir/impgen.c~ 110 110 test -f $output_objdir/impgen.exe || (cd $output_objdir && \ 111 if test "x$ HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \111 if test "x$BUILD_CC" != "x" ; then $BUILD_CC -o impgen impgen.c ; \ 112 112 else $CC -o impgen impgen.c ; fi)~ 113 113 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' … … 418 418 419 419 hpux9* | hpux10* | hpux11*) 420 case "$host_cpu" in 421 ia64*) 422 hardcode_direct=no 423 hardcode_shlibpath_var=no 424 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 425 hardcode_libdir_flag_spec='-L$libdir' ;; 426 *) 420 427 if test $with_gcc = yes; then 421 428 case "$host_os" in … … 431 438 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 432 439 hardcode_libdir_separator=: 433 hardcode_direct=yes434 440 hardcode_minus_L=yes # Not in the search PATH, but as the default 435 441 # location of the library. 442 ;; 443 esac 436 444 export_dynamic_flag_spec='${wl}-E' 445 hardcode_direct=yes 437 446 ;; 438 447 … … 481 490 allow_undefined_flag=no 482 491 archive_cmds='$echo "LIBRARY $soname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 483 # contains GCC_OMF hack. 484 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def~emximp -p128 -o $output_objdir/$libname.lib $output_objdir/$libname.def~if test -n $GCC_OMF;then mv -f $output_objdir/$libname.lib $output_objdir/$libname.a; fi' 492 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 485 493 ;; 486 494 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/ltcf-cxx.sh
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1102 r1103 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 … … 498 514 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 499 515 archive_cmds='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 500 516 501 517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 502 518 hardcode_libdir_separator=: 503 519 504 520 # Commands to make compiler produce verbose output that lists 505 521 # what "hidden" libraries, object files and flags are used when … … 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
-
trunk/src/gcc/ltcf-gcj.sh
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1102 r1103 3 3 # ltcf-gcj.sh - Create a GCJ 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 # … … 112 112 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //; p; }" -e d < $0 > $output_objdir/impgen.c~ 113 113 test -f $output_objdir/impgen.exe || (cd $output_objdir && \ 114 if test "x$ HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \114 if test "x$BUILD_CC" != "x" ; then $BUILD_CC -o impgen impgen.c ; \ 115 115 else $CC -o impgen impgen.c ; fi)~ 116 116 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' … … 493 493 solaris*) 494 494 no_undefined_flag=' ${wl}-z ${wl}defs' 495 archive_cmds='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $ linker_flags ${wl}-h $wl$soname -o $lib'495 archive_cmds='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 496 496 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 497 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $ linker_flags~$rm $lib.exp'497 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 498 498 499 499 # Commands to make compiler produce verbose output that lists -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/ltconfig
-
Property cvs2svn:cvs-rev
changed from
1.5
to1.6
r1102 r1103 1156 1156 # Give a soname corresponding to the major version so that dld.sl refuses to 1157 1157 # link against other versions. 1158 dynamic_linker="$host_os dld.sl"1159 1158 version_type=sunos 1160 1159 need_lib_prefix=no 1161 1160 need_version=no 1161 case "$host_cpu" in 1162 ia64*) 1163 dynamic_linker="$host_os dld.so" 1164 shlibpath_var=LD_LIBRARY_PATH 1165 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 1166 soname_spec='${libname}${release}.so$major' 1167 shlibpath_var=LD_LIBRARY_PATH 1168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 1169 if test "X$HPUX_IA64_MODE" = X32; then 1170 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32/usr/local/lib" 1171 else 1172 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 1173 fi 1174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 1175 ;; 1176 *) 1177 dynamic_linker="$host_os dld.sl" 1162 1178 shlibpath_var=SHLIB_PATH 1163 1179 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 1164 1180 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' 1165 1181 soname_spec='${libname}${release}.sl$major' 1182 ;; 1183 esac 1166 1184 # HP-UX runs *really* slowly unless shared libraries are mode 555. 1167 1185 postinstall_cmds='chmod 555 $lib' … … 1169 1187 1170 1188 irix5* | irix6*) 1189 if test "$with_gnu_ld" = yes; then 1190 version_type=linux 1191 else 1192 version_type=irix 1193 fi 1171 1194 version_type=irix 1172 1195 need_lib_prefix=no … … 1180 1203 *) 1181 1204 case $LD in # libtool.m4 will add one of these switches to LD 1182 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; 1183 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; 1184 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; 1205 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 1206 libsuff= shlibsuff= libmagic=32-bit;; 1207 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 1208 libsuff=32 shlibsuff=N32 libmagic=N32;; 1209 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 1210 libsuff=64 shlibsuff=64 libmagic=64-bit;; 1185 1211 *) libsuff= shlibsuff= libmagic=never-match;; 1186 1212 esac … … 1262 1288 need_version=no 1263 1289 need_lib_prefix=no 1264 # embedd hexversionnumbers into the name as far as there is space for such.1290 # embedd versionnumbers into the name as far as there is space for such. 1265 1291 # old: libname_spec='$name' 1266 1292 # old: library_names_spec='$libname.dll $libname.a' -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/ltmain.sh
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1102 r1103 647 647 exit $status 648 648 fi 649 fi 649 fi 650 650 651 651 if test -z "$output_obj"; then … … 4248 4248 concat_cmds= 4249 4249 save_oldobjs=$oldobjs 4250 # GNU ar 2.10+ was changed to match POSIX; thus no paths are4251 # encoded into archives. This makes 'ar r' malfunction in4252 # this piecewise linking case whenever conflicting object4253 # names appear in distinct ar calls; check, warn and compensate.4254 if (for obj in $save_oldobjs4255 do4256 $echo "X$obj" | $Xsed -e 's%^.*/%%'4257 done | sort | sort -uc >/dev/null 2>&1); then4258 :4259 else4260 $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&24261 $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&24262 AR_FLAGS=cq4263 fi4264 4250 for obj in $save_oldobjs 4265 4251 do -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.