Ignore:
Timestamp:
Apr 28, 2004, 6:58:06 AM (21 years ago)
Author:
bird
Message:

#1040: Joined the GCC 3.3.3 with the trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gcc/ltcf-c.sh

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r1393 r1394  
    109109      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //; p; }" -e d < $0 > $output_objdir/impgen.c~
    110110      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
    111       if test "x$BUILD_CC" != "x" ; then $BUILD_CC -o impgen impgen.c ; \
     111      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
    112112      else $CC -o impgen impgen.c ; fi)~
    113113      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
     
    425425      hardcode_libdir_flag_spec='-L$libdir' ;;
    426426    *)
    427     if test $with_gcc = yes; then
    428       case "$host_os" in
    429       hpux9*) archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
    430       *) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;;
    431       esac
    432     else
    433       case $host_os in
    434       hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
    435       *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
    436       esac
    437     fi
    438     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
    439     hardcode_libdir_separator=:
    440     hardcode_minus_L=yes # Not in the search PATH, but as the default
    441                          # location of the library.
     427      if test $with_gcc = yes; then
     428        case "$host_os" in
     429        hpux9*) archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
     430        *) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;;
     431        esac
     432      else
     433        case $host_os in
     434        hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
     435        *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
     436        esac
     437      fi
     438      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
     439      hardcode_libdir_separator=:
     440      hardcode_minus_L=yes # Not in the search PATH, but as the default
     441                           # location of the library.
    442442      ;;
    443443    esac
     
    484484
    485485  os2*)
    486   hardcode_libdir_flag_spec='-L$libdir'
    487   hardcode_minus_L=yes
    488   #allow_undefined_flag=unsupported
    489   # HACK!!!! just need something here to link shared libs - at least for now.
    490   allow_undefined_flag=no
    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 ${LT_OS2_LDFLAGS} $output_objdir/$libname.def'
    492   old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
     486    hardcode_libdir_flag_spec='-L$libdir'
     487    hardcode_minus_L=yes
     488    #allow_undefined_flag=unsupported
     489    # HACK!!!! just need something here to link shared libs - at least for now.
     490    allow_undefined_flag=no
     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 ${LT_OS2_LDFLAGS} $output_objdir/$libname.def'
     492    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
    493493    ;;
    494494
Note: See TracChangeset for help on using the changeset viewer.