source: patches/gcc-4.0.3-posix-1.patch @ 69cde8d

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 69cde8d was 69cde8d, checked in by Jim Gifford <clfs@…>, 18 years ago

Added: All patches needed for the book.

  • Property mode set to 100644
File size: 8.5 KB
  • contrib/test_summary

    Submitted By: Jim Gifford (patches at jg555 dot com)
    Date: 2005-08-27
    Initial Package Version: 4.0.1
    Origin: Jim Gifford
    Upstream Status: On Hold
    Description: Makes GCC Posix Compliant
     
    diff -Naur gcc-4.0.1.orig/contrib/test_summary gcc-4.0.1/contrib/test_summary
    old new  
    106106    srcdir = configflags;
    107107    sub(/\/configure .*/, "", srcdir);
    108108    printf "LAST_UPDATED: ";
    109     system("tail -1 " srcdir "/LAST_UPDATED");
     109    system("tail -n 1 " srcdir "/LAST_UPDATED");
    110110    print "";
    111111
    112112    sub(/^[^ ]*\/configure */, " ", configflags);
  • gcc/configure

    diff -Naur gcc-4.0.1.orig/gcc/configure gcc-4.0.1/gcc/configure
    old new  
    1351113511  # and we got the correct data, then succeed.
    1351213512  if test x$gcc_cv_objdump != x \
    1351313513  && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
    13514      | tail -3 > conftest.got \
     13514     | tail -n 3 > conftest.got \
    1351513515  && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
    1351613516    || cmp conftest.big conftest.got > /dev/null 2>&1; }
    1351713517  then
  • gcc/configure.ac

    diff -Naur gcc-4.0.1.orig/gcc/configure.ac gcc-4.0.1/gcc/configure.ac
    old new  
    22142214  # and we got the correct data, then succeed.
    22152215  if test x$gcc_cv_objdump != x \
    22162216  && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
    2217      | tail -3 > conftest.got \
     2217     | tail -n 3 > conftest.got \
    22182218  && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
    22192219    || cmp conftest.big conftest.got > /dev/null 2>&1; }
    22202220  then
  • libjava/acinclude.m4

    diff -Naur gcc-4.0.1.orig/libjava/acinclude.m4 gcc-4.0.1/libjava/acinclude.m4
    old new  
    1717AC_MSG_CHECKING(whether 'ld' is at least 2.13)
    1818LD_PROG=`$CC --print-prog-name=ld`
    1919LD_VERSION=`$LD_PROG --version`
    20 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
    21 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
     20LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
     21LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
    2222if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
    2323  LD_OK="ok"
    2424else
  • libjava/configure

    diff -Naur gcc-4.0.1.orig/libjava/configure gcc-4.0.1/libjava/configure
    old new  
    59335933echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
    59345934LD_PROG=`$CC --print-prog-name=ld`
    59355935LD_VERSION=`$LD_PROG --version`
    5936 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
    5937 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
     5936LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
     5937LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
    59385938if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
    59395939  LD_OK="ok"
    59405940else
  • libstdc++-v3/acinclude.m4

    diff -Naur gcc-4.0.1.orig/libstdc++-v3/acinclude.m4 gcc-4.0.1/libstdc++-v3/acinclude.m4
    old new  
    241241  # Start by getting the version number.  I think the libtool test already
    242242  # does some of this, but throws away the result.
    243243  changequote(,)
    244   ldver=`$LD --version 2>/dev/null | head -1 | \
     244  ldver=`$LD --version 2>/dev/null | head -n 1 | \
    245245         sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
    246246  changequote([,])
    247247  glibcxx_gnu_ld_version=`echo $ldver | \
  • libstdc++-v3/configure

    diff -Naur gcc-4.0.1.orig/libstdc++-v3/configure gcc-4.0.1/libstdc++-v3/configure
    old new  
    98809880  # Start by getting the version number.  I think the libtool test already
    98819881  # does some of this, but throws away the result.
    98829882
    9883   ldver=`$LD --version 2>/dev/null | head -1 | \
     9883  ldver=`$LD --version 2>/dev/null | head -n 1 | \
    98849884         sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
    98859885
    98869886  glibcxx_gnu_ld_version=`echo $ldver | \
     
    5525255252  # Start by getting the version number.  I think the libtool test already
    5525355253  # does some of this, but throws away the result.
    5525455254
    55255   ldver=`$LD --version 2>/dev/null | head -1 | \
     55255  ldver=`$LD --version 2>/dev/null | head -n 1 | \
    5525655256         sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
    5525755257
    5525855258  glibcxx_gnu_ld_version=`echo $ldver | \
     
    7692376923  # Start by getting the version number.  I think the libtool test already
    7692476924  # does some of this, but throws away the result.
    7692576925
    76926   ldver=`$LD --version 2>/dev/null | head -1 | \
     76926  ldver=`$LD --version 2>/dev/null | head -n 1 | \
    7692776927         sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
    7692876928
    7692976929  glibcxx_gnu_ld_version=`echo $ldver | \
     
    7929279292  # Start by getting the version number.  I think the libtool test already
    7929379293  # does some of this, but throws away the result.
    7929479294
    79295   ldver=`$LD --version 2>/dev/null | head -1 | \
     79295  ldver=`$LD --version 2>/dev/null | head -n 1 | \
    7929679296         sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
    7929779297
    7929879298  glibcxx_gnu_ld_version=`echo $ldver | \
     
    8153781537  # Start by getting the version number.  I think the libtool test already
    8153881538  # does some of this, but throws away the result.
    8153981539
    81540   ldver=`$LD --version 2>/dev/null | head -1 | \
     81540  ldver=`$LD --version 2>/dev/null | head -n 1 | \
    8154181541         sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
    8154281542
    8154381543  glibcxx_gnu_ld_version=`echo $ldver | \
     
    8455084550  # Start by getting the version number.  I think the libtool test already
    8455184551  # does some of this, but throws away the result.
    8455284552
    84553   ldver=`$LD --version 2>/dev/null | head -1 | \
     84553  ldver=`$LD --version 2>/dev/null | head -n 1 | \
    8455484554         sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
    8455584555
    8455684556  glibcxx_gnu_ld_version=`echo $ldver | \
     
    8674886748  # Start by getting the version number.  I think the libtool test already
    8674986749  # does some of this, but throws away the result.
    8675086750
    86751   ldver=`$LD --version 2>/dev/null | head -1 | \
     86751  ldver=`$LD --version 2>/dev/null | head -n 1 | \
    8675286752         sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
    8675386753
    8675486754  glibcxx_gnu_ld_version=`echo $ldver | \
     
    8899588995  # Start by getting the version number.  I think the libtool test already
    8899688996  # does some of this, but throws away the result.
    8899788997
    88998   ldver=`$LD --version 2>/dev/null | head -1 | \
     88998  ldver=`$LD --version 2>/dev/null | head -n 1 | \
    8899988999         sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
    8900089000
    8900189001  glibcxx_gnu_ld_version=`echo $ldver | \
     
    9160391603  # Start by getting the version number.  I think the libtool test already
    9160491604  # does some of this, but throws away the result.
    9160591605
    91606   ldver=`$LD --version 2>/dev/null | head -1 | \
     91606  ldver=`$LD --version 2>/dev/null | head -n 1 | \
    9160791607         sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
    9160891608
    9160991609  glibcxx_gnu_ld_version=`echo $ldver | \
  • ltcf-c.sh

    diff -Naur gcc-4.0.1.orig/ltcf-c.sh gcc-4.0.1/ltcf-c.sh
    old new  
    153153    # If the export-symbols file already is a .def file (1st line
    154154    # is EXPORTS), use it as is.
    155155    # If DATA tags from a recent dlltool are present, honour them!
    156     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
     156    archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
    157157        cp $export_symbols $output_objdir/$soname-def;
    158158      else
    159159        echo EXPORTS > $output_objdir/$soname-def;
  • ltcf-gcj.sh

    diff -Naur gcc-4.0.1.orig/ltcf-gcj.sh gcc-4.0.1/ltcf-gcj.sh
    old new  
    156156    # If the export-symbols file already is a .def file (1st line
    157157    # is EXPORTS), use it as is.
    158158    # If DATA tags from a recent dlltool are present, honour them!
    159     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
     159    archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
    160160        cp $export_symbols $output_objdir/$soname-def;
    161161      else
    162162        echo EXPORTS > $output_objdir/$soname-def;
Note: See TracBrowser for help on using the repository browser.