|
Copied from linuxfromscratch.org and rediffed against 4.1.2 for ROCK Linux.
|
|
|
|
Submitted By: Jim Gifford (patches at jg555 dot com)
|
|
Date: 2005-08-27
|
|
Initial Package Version: 4.0.1
|
|
Origin: Jim Gifford
|
|
Rediffed against 4.1.0 by Chris Staub
|
|
Upstream Status: On Hold
|
|
Description: Makes GCC Posix Compliant
|
|
|
|
--- gcc-4.1.2/contrib/test_summary 2004-08-26 07:51:22.000000000 +0200
|
|
+++ src.gcc41.1189992263.16998.3710433526/gcc-4.1.2/contrib/test_summary 2007-09-17 03:26:52.000000000 +0200
|
|
@@ -106,7 +106,7 @@
|
|
srcdir = configflags;
|
|
sub(/\/configure .*/, "", srcdir);
|
|
printf "LAST_UPDATED: ";
|
|
- system("tail -1 " srcdir "/LAST_UPDATED");
|
|
+ system("tail -n 1 " srcdir "/LAST_UPDATED");
|
|
print "";
|
|
|
|
sub(/^[^ ]*\/configure */, " ", configflags);
|
|
--- gcc-4.1.2/gcc/configure 2006-11-13 23:09:55.000000000 +0100
|
|
+++ src.gcc41.1189992263.16998.3710433526/gcc-4.1.2/gcc/configure 2007-09-17 03:26:52.000000000 +0200
|
|
@@ -14318,7 +14318,7 @@
|
|
# and we got the correct data, then succeed.
|
|
if test x$gcc_cv_objdump != x \
|
|
&& $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
|
|
- | tail -3 > conftest.got \
|
|
+ | tail -n 3 > conftest.got \
|
|
&& { cmp conftest.lit conftest.got > /dev/null 2>&1 \
|
|
|| cmp conftest.big conftest.got > /dev/null 2>&1; }
|
|
then
|
|
--- gcc-4.1.2/gcc/configure.ac 2006-11-13 23:09:55.000000000 +0100
|
|
+++ src.gcc41.1189992263.16998.3710433526/gcc-4.1.2/gcc/configure.ac 2007-09-17 03:26:52.000000000 +0200
|
|
@@ -2124,7 +2124,7 @@
|
|
# and we got the correct data, then succeed.
|
|
if test x$gcc_cv_objdump != x \
|
|
&& $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
|
|
- | tail -3 > conftest.got \
|
|
+ | tail -n 3 > conftest.got \
|
|
&& { cmp conftest.lit conftest.got > /dev/null 2>&1 \
|
|
|| cmp conftest.big conftest.got > /dev/null 2>&1; }
|
|
then
|
|
--- gcc-4.1.2/libjava/configure 2007-02-14 06:17:22.000000000 +0100
|
|
+++ src.gcc41.1189992263.16998.3710433526/gcc-4.1.2/libjava/configure 2007-09-17 03:26:52.000000000 +0200
|
|
@@ -6736,8 +6736,8 @@
|
|
echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
|
|
LD_PROG=`$CC --print-prog-name=ld`
|
|
LD_VERSION=`$LD_PROG --version`
|
|
-LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
|
|
-LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
|
|
+LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
|
|
+LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
|
|
if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
|
|
LD_OK="ok"
|
|
else
|
|
--- gcc-4.1.2/libjava/mingwld.m4 2005-08-23 00:36:35.000000000 +0200
|
|
+++ src.gcc41.1189992263.16998.3710433526/gcc-4.1.2/libjava/mingwld.m4 2007-09-17 03:26:52.000000000 +0200
|
|
@@ -3,8 +3,8 @@
|
|
AC_MSG_CHECKING(whether 'ld' is at least 2.13)
|
|
LD_PROG=`$CC --print-prog-name=ld`
|
|
LD_VERSION=`$LD_PROG --version`
|
|
-LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
|
|
-LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
|
|
+LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
|
|
+LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
|
|
if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
|
|
LD_OK="ok"
|
|
else
|
|
--- gcc-4.1.2/libstdc++-v3/acinclude.m4 2007-01-29 11:51:01.000000000 +0100
|
|
+++ src.gcc41.1189992263.16998.3710433526/gcc-4.1.2/libstdc++-v3/acinclude.m4 2007-09-17 07:33:27.000000000 +0200
|
|
@@ -224,7 +224,7 @@
|
|
# does some of this, but throws away the result.
|
|
if test x"$with_gnu_ld" = x"yes"; then
|
|
changequote(,)
|
|
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
|
changequote([,])
|
|
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
--- gcc-4.1.2/libstdc++-v3/configure 2007-01-29 11:51:01.000000000 +0100
|
|
+++ src.gcc41.1189992263.16998.3710433526/gcc-4.1.2/libstdc++-v3/configure 2007-09-17 07:37:10.000000000 +0200
|
|
@@ -8280,7 +8280,7 @@
|
|
# does some of this, but throws away the result.
|
|
if test x"$with_gnu_ld" = x"yes"; then
|
|
|
|
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
|
|
|
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
@@ -53121,7 +53121,7 @@
|
|
# does some of this, but throws away the result.
|
|
if test x"$with_gnu_ld" = x"yes"; then
|
|
|
|
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
|
|
|
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
@@ -74455,7 +74455,7 @@
|
|
# does some of this, but throws away the result.
|
|
if test x"$with_gnu_ld" = x"yes"; then
|
|
|
|
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
|
|
|
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
@@ -75952,7 +75952,7 @@
|
|
# does some of this, but throws away the result.
|
|
if test x"$with_gnu_ld" = x"yes"; then
|
|
|
|
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
|
|
|
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
@@ -77325,7 +77325,7 @@
|
|
# does some of this, but throws away the result.
|
|
if test x"$with_gnu_ld" = x"yes"; then
|
|
|
|
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
|
|
|
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
@@ -79485,7 +79485,7 @@
|
|
# does some of this, but throws away the result.
|
|
if test x"$with_gnu_ld" = x"yes"; then
|
|
|
|
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
|
|
|
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
@@ -80304,7 +80304,7 @@
|
|
# does some of this, but throws away the result.
|
|
if test x"$with_gnu_ld" = x"yes"; then
|
|
|
|
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
|
|
|
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
@@ -81679,7 +81679,7 @@
|
|
# does some of this, but throws away the result.
|
|
if test x"$with_gnu_ld" = x"yes"; then
|
|
|
|
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
|
|
|
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
@@ -83446,7 +83446,7 @@
|
|
# does some of this, but throws away the result.
|
|
if test x"$with_gnu_ld" = x"yes"; then
|
|
|
|
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
|
|
|
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
@@ -84663,7 +84663,7 @@
|
|
# does some of this, but throws away the result.
|
|
if test x"$with_gnu_ld" = x"yes"; then
|
|
|
|
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
|
|
|
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
@@ -85664,7 +85664,7 @@
|
|
# does some of this, but throws away the result.
|
|
if test x"$with_gnu_ld" = x"yes"; then
|
|
|
|
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
|
|
|
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
--- gcc-4.1.2/ltcf-c.sh 2005-11-18 23:53:08.000000000 +0100
|
|
+++ src.gcc41.1189992263.16998.3710433526/gcc-4.1.2/ltcf-c.sh 2007-09-17 03:26:53.000000000 +0200
|
|
@@ -153,7 +153,7 @@
|
|
# If the export-symbols file already is a .def file (1st line
|
|
# is EXPORTS), use it as is.
|
|
# If DATA tags from a recent dlltool are present, honour them!
|
|
- archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
|
|
+ archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
|
|
cp $export_symbols $output_objdir/$soname-def;
|
|
else
|
|
echo EXPORTS > $output_objdir/$soname-def;
|
|
--- gcc-4.1.2/ltcf-gcj.sh 2005-07-16 04:30:53.000000000 +0200
|
|
+++ src.gcc41.1189992263.16998.3710433526/gcc-4.1.2/ltcf-gcj.sh 2007-09-17 03:26:53.000000000 +0200
|
|
@@ -156,7 +156,7 @@
|
|
# If the export-symbols file already is a .def file (1st line
|
|
# is EXPORTS), use it as is.
|
|
# If DATA tags from a recent dlltool are present, honour them!
|
|
- archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
|
|
+ archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
|
|
cp $export_symbols $output_objdir/$soname-def;
|
|
else
|
|
echo EXPORTS > $output_objdir/$soname-def;
|