[08c058a] | 1 | Submitted By: Jim Gifford (patches at jg555 dot com)
|
---|
| 2 | Date: 2007-02-14
|
---|
| 3 | Initial Package Version: 4.1.2
|
---|
| 4 | Origin: Jim Gifford
|
---|
| 5 | Rediffed against 4.1.0 by Chris Staub
|
---|
| 6 | Rediffed against 4.1.2 by Jim Gifford
|
---|
| 7 | Rediffed and additions against 4.2.0 by Joe Ciccone
|
---|
| 8 | Upstream Status: On Hold
|
---|
| 9 | Description: Makes GCC Posix Compliant
|
---|
| 10 |
|
---|
| 11 | diff -Naur gcc-4.2.0.orig/contrib/test_summary gcc-4.2.0/contrib/test_summary
|
---|
| 12 | --- gcc-4.2.0.orig/contrib/test_summary 2007-05-16 19:21:35.000000000 -0400
|
---|
| 13 | +++ gcc-4.2.0/contrib/test_summary 2007-05-18 16:38:48.000000000 -0400
|
---|
| 14 | @@ -106,7 +106,7 @@
|
---|
| 15 | srcdir = configflags;
|
---|
| 16 | sub(/\/configure .*/, "", srcdir);
|
---|
| 17 | printf "LAST_UPDATED: ";
|
---|
| 18 | - system("tail -1 " srcdir "/LAST_UPDATED");
|
---|
| 19 | + system("tail -n 1 " srcdir "/LAST_UPDATED");
|
---|
| 20 | print "";
|
---|
| 21 |
|
---|
| 22 | sub(/^[^ ]*\/configure */, " ", configflags);
|
---|
| 23 | diff -Naur gcc-4.2.0.orig/gcc/configure.ac gcc-4.2.0/gcc/configure.ac
|
---|
| 24 | --- gcc-4.2.0.orig/gcc/configure.ac 2007-05-16 19:21:23.000000000 -0400
|
---|
| 25 | +++ gcc-4.2.0/gcc/configure.ac 2007-05-18 16:39:21.000000000 -0400
|
---|
| 26 | @@ -2227,7 +2227,7 @@
|
---|
| 27 | # Therefore, use diff -b for the comparisons.
|
---|
| 28 | if test x$gcc_cv_objdump != x \
|
---|
| 29 | && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
|
---|
| 30 | - | tail -3 > conftest.got \
|
---|
| 31 | + | tail -n 3 > conftest.got \
|
---|
| 32 | && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
|
---|
| 33 | || diff -b conftest.big conftest.got > /dev/null 2>&1; }
|
---|
| 34 | then
|
---|
| 35 | diff -Naur gcc-4.2.0.orig/gcc/configure gcc-4.2.0/gcc/configure
|
---|
| 36 | --- gcc-4.2.0.orig/gcc/configure 2007-05-16 19:21:26.000000000 -0400
|
---|
| 37 | +++ gcc-4.2.0/gcc/configure 2007-05-18 16:39:10.000000000 -0400
|
---|
| 38 | @@ -14120,7 +14120,7 @@
|
---|
| 39 | # Therefore, use diff -b for the comparisons.
|
---|
| 40 | if test x$gcc_cv_objdump != x \
|
---|
| 41 | && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
|
---|
| 42 | - | tail -3 > conftest.got \
|
---|
| 43 | + | tail -n 3 > conftest.got \
|
---|
| 44 | && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
|
---|
| 45 | || diff -b conftest.big conftest.got > /dev/null 2>&1; }
|
---|
| 46 | then
|
---|
| 47 | diff -Naur gcc-4.2.0.orig/gcc/testsuite/ada/acats/run_all.sh gcc-4.2.0/gcc/testsuite/ada/acats/run_all.sh
|
---|
| 48 | --- gcc-4.2.0.orig/gcc/testsuite/ada/acats/run_all.sh 2007-05-16 19:21:20.000000000 -0400
|
---|
| 49 | +++ gcc-4.2.0/gcc/testsuite/ada/acats/run_all.sh 2007-05-18 16:44:02.000000000 -0400
|
---|
| 50 | @@ -68,7 +68,7 @@
|
---|
| 51 | ls ${i}?.adb > ${i}.lst 2> /dev/null
|
---|
| 52 | ls ${i}*m.adb >> ${i}.lst 2> /dev/null
|
---|
| 53 | ls ${i}.adb >> ${i}.lst 2> /dev/null
|
---|
| 54 | - main=`tail -1 ${i}.lst`
|
---|
| 55 | + main=`tail -n 1 ${i}.lst`
|
---|
| 56 | }
|
---|
| 57 |
|
---|
| 58 | EXTERNAL_OBJECTS=""
|
---|
| 59 | diff -Naur gcc-4.2.0.orig/libgomp/acinclude.m4 gcc-4.2.0/libgomp/acinclude.m4
|
---|
| 60 | --- gcc-4.2.0.orig/libgomp/acinclude.m4 2007-05-16 19:21:18.000000000 -0400
|
---|
| 61 | +++ gcc-4.2.0/libgomp/acinclude.m4 2007-05-18 16:42:11.000000000 -0400
|
---|
| 62 | @@ -147,7 +147,7 @@
|
---|
| 63 | # Start by getting the version number. I think the libtool test already
|
---|
| 64 | # does some of this, but throws away the result.
|
---|
| 65 | changequote(,)
|
---|
| 66 | - ldver=`$LD --version 2>/dev/null | head -1 | \
|
---|
| 67 | + ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
---|
| 68 | sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
---|
| 69 | changequote([,])
|
---|
| 70 | libgomp_gnu_ld_version=`echo $ldver | \
|
---|
| 71 | diff -Naur gcc-4.2.0.orig/libgomp/configure gcc-4.2.0/libgomp/configure
|
---|
| 72 | --- gcc-4.2.0.orig/libgomp/configure 2007-05-16 19:21:19.000000000 -0400
|
---|
| 73 | +++ gcc-4.2.0/libgomp/configure 2007-05-18 16:42:19.000000000 -0400
|
---|
| 74 | @@ -9314,7 +9314,7 @@
|
---|
| 75 | # Start by getting the version number. I think the libtool test already
|
---|
| 76 | # does some of this, but throws away the result.
|
---|
| 77 |
|
---|
| 78 | - ldver=`$LD --version 2>/dev/null | head -1 | \
|
---|
| 79 | + ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
---|
| 80 | sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
---|
| 81 |
|
---|
| 82 | libgomp_gnu_ld_version=`echo $ldver | \
|
---|
| 83 | diff -Naur gcc-4.2.0.orig/libjava/classpath/m4/ax_create_stdint_h.m4 gcc-4.2.0/libjava/classpath/m4/ax_create_stdint_h.m4
|
---|
| 84 | --- gcc-4.2.0.orig/libjava/classpath/m4/ax_create_stdint_h.m4 2007-05-16 19:21:35.000000000 -0400
|
---|
| 85 | +++ gcc-4.2.0/libjava/classpath/m4/ax_create_stdint_h.m4 2007-05-18 16:43:26.000000000 -0400
|
---|
| 86 | @@ -217,7 +217,7 @@
|
---|
| 87 | fi # shortcircut to system "stdint.h"
|
---|
| 88 | # ------------------ PREPARE VARIABLES ------------------------------
|
---|
| 89 | if test "$GCC" = "yes" ; then
|
---|
| 90 | -ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
|
---|
| 91 | +ac_cv_stdint_message="using gnu compiler "`$CC --version | head -n 1`
|
---|
| 92 | else
|
---|
| 93 | ac_cv_stdint_message="using $CC"
|
---|
| 94 | fi
|
---|
| 95 | diff -Naur gcc-4.2.0.orig/libjava/classpath/configure gcc-4.2.0/libjava/classpath/configure
|
---|
| 96 | --- gcc-4.2.0.orig/libjava/classpath/configure 2007-05-16 19:21:35.000000000 -0400
|
---|
| 97 | +++ gcc-4.2.0/libjava/classpath/configure 2007-05-18 16:43:09.000000000 -0400
|
---|
| 98 | @@ -18514,7 +18514,7 @@
|
---|
| 99 | fi # shortcircut to system "stdint.h"
|
---|
| 100 | # ------------------ PREPARE VARIABLES ------------------------------
|
---|
| 101 | if test "$GCC" = "yes" ; then
|
---|
| 102 | -ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
|
---|
| 103 | +ac_cv_stdint_message="using gnu compiler "`$CC --version | head -n 1`
|
---|
| 104 | else
|
---|
| 105 | ac_cv_stdint_message="using $CC"
|
---|
| 106 | fi
|
---|
| 107 | diff -Naur gcc-4.2.0.orig/libjava/classpath/ltcf-c.sh gcc-4.2.0/libjava/classpath/ltcf-c.sh
|
---|
| 108 | --- gcc-4.2.0.orig/libjava/classpath/ltcf-c.sh 2007-05-16 19:21:31.000000000 -0400
|
---|
| 109 | +++ gcc-4.2.0/libjava/classpath/ltcf-c.sh 2007-05-18 16:42:36.000000000 -0400
|
---|
| 110 | @@ -153,7 +153,7 @@
|
---|
| 111 | # If the export-symbols file already is a .def file (1st line
|
---|
| 112 | # is EXPORTS), use it as is.
|
---|
| 113 | # If DATA tags from a recent dlltool are present, honour them!
|
---|
| 114 | - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
|
---|
| 115 | + archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
|
---|
| 116 | cp $export_symbols $output_objdir/$soname-def;
|
---|
| 117 | else
|
---|
| 118 | echo EXPORTS > $output_objdir/$soname-def;
|
---|
| 119 | diff -Naur gcc-4.2.0.orig/libjava/classpath/ltcf-gcj.sh gcc-4.2.0/libjava/classpath/ltcf-gcj.sh
|
---|
| 120 | --- gcc-4.2.0.orig/libjava/classpath/ltcf-gcj.sh 2007-05-16 19:21:34.000000000 -0400
|
---|
| 121 | +++ gcc-4.2.0/libjava/classpath/ltcf-gcj.sh 2007-05-18 16:42:45.000000000 -0400
|
---|
| 122 | @@ -156,7 +156,7 @@
|
---|
| 123 | # If the export-symbols file already is a .def file (1st line
|
---|
| 124 | # is EXPORTS), use it as is.
|
---|
| 125 | # If DATA tags from a recent dlltool are present, honour them!
|
---|
| 126 | - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
|
---|
| 127 | + archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
|
---|
| 128 | cp $export_symbols $output_objdir/$soname-def;
|
---|
| 129 | else
|
---|
| 130 | echo EXPORTS > $output_objdir/$soname-def;
|
---|
| 131 | diff -Naur gcc-4.2.0.orig/libjava/mingwld.m4 gcc-4.2.0/libjava/mingwld.m4
|
---|
| 132 | --- gcc-4.2.0.orig/libjava/mingwld.m4 2007-05-16 19:21:29.000000000 -0400
|
---|
| 133 | +++ gcc-4.2.0/libjava/mingwld.m4 2007-05-18 16:40:06.000000000 -0400
|
---|
| 134 | @@ -3,8 +3,8 @@
|
---|
| 135 | AC_MSG_CHECKING(whether 'ld' is at least 2.13)
|
---|
| 136 | LD_PROG=`$CC --print-prog-name=ld`
|
---|
| 137 | LD_VERSION=`$LD_PROG --version`
|
---|
| 138 | -LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
|
---|
| 139 | -LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
|
---|
| 140 | +LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
|
---|
| 141 | +LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
|
---|
| 142 | if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
|
---|
| 143 | LD_OK="ok"
|
---|
| 144 | else
|
---|
| 145 | diff -Naur gcc-4.2.0.orig/libjava/configure gcc-4.2.0/libjava/configure
|
---|
| 146 | --- gcc-4.2.0.orig/libjava/configure 2007-05-16 19:21:29.000000000 -0400
|
---|
| 147 | +++ gcc-4.2.0/libjava/configure 2007-05-18 16:39:43.000000000 -0400
|
---|
| 148 | @@ -7025,8 +7025,8 @@
|
---|
| 149 | echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
|
---|
| 150 | LD_PROG=`$CC --print-prog-name=ld`
|
---|
| 151 | LD_VERSION=`$LD_PROG --version`
|
---|
| 152 | -LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
|
---|
| 153 | -LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
|
---|
| 154 | +LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
|
---|
| 155 | +LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
|
---|
| 156 | if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
|
---|
| 157 | LD_OK="ok"
|
---|
| 158 | else
|
---|
| 159 | diff -Naur gcc-4.2.0.orig/libstdc++-v3/acinclude.m4 gcc-4.2.0/libstdc++-v3/acinclude.m4
|
---|
| 160 | --- gcc-4.2.0.orig/libstdc++-v3/acinclude.m4 2007-05-16 19:21:35.000000000 -0400
|
---|
| 161 | +++ gcc-4.2.0/libstdc++-v3/acinclude.m4 2007-05-18 16:40:37.000000000 -0400
|
---|
| 162 | @@ -234,7 +234,7 @@
|
---|
| 163 | if test x"$with_gnu_ld" = x"yes"; then
|
---|
| 164 | AC_MSG_CHECKING([for ld version])
|
---|
| 165 | changequote(,)
|
---|
| 166 | - ldver=`$LD --version 2>/dev/null | head -1 | \
|
---|
| 167 | + ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
---|
| 168 | sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
---|
| 169 | changequote([,])
|
---|
| 170 | glibcxx_gnu_ld_version=`echo $ldver | \
|
---|
| 171 | diff -Naur gcc-4.2.0.orig/libstdc++-v3/configure gcc-4.2.0/libstdc++-v3/configure
|
---|
| 172 | --- gcc-4.2.0.orig/libstdc++-v3/configure 2007-05-16 19:21:36.000000000 -0400
|
---|
| 173 | +++ gcc-4.2.0/libstdc++-v3/configure 2007-05-18 16:41:04.000000000 -0400
|
---|
| 174 | @@ -8377,7 +8377,7 @@
|
---|
| 175 | echo "$as_me:$LINENO: checking for ld version" >&5
|
---|
| 176 | echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
---|
| 177 |
|
---|
| 178 | - ldver=`$LD --version 2>/dev/null | head -1 | \
|
---|
| 179 | + ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
---|
| 180 | sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
---|
| 181 |
|
---|
| 182 | glibcxx_gnu_ld_version=`echo $ldver | \
|
---|
| 183 | @@ -54289,7 +54289,7 @@
|
---|
| 184 | echo "$as_me:$LINENO: checking for ld version" >&5
|
---|
| 185 | echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
---|
| 186 |
|
---|
| 187 | - ldver=`$LD --version 2>/dev/null | head -1 | \
|
---|
| 188 | + ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
---|
| 189 | sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
---|
| 190 |
|
---|
| 191 | glibcxx_gnu_ld_version=`echo $ldver | \
|
---|
| 192 | @@ -75651,7 +75651,7 @@
|
---|
| 193 | echo "$as_me:$LINENO: checking for ld version" >&5
|
---|
| 194 | echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
---|
| 195 |
|
---|
| 196 | - ldver=`$LD --version 2>/dev/null | head -1 | \
|
---|
| 197 | + ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
---|
| 198 | sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
---|
| 199 |
|
---|
| 200 | glibcxx_gnu_ld_version=`echo $ldver | \
|
---|
| 201 | @@ -77176,7 +77176,7 @@
|
---|
| 202 | echo "$as_me:$LINENO: checking for ld version" >&5
|
---|
| 203 | echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
---|
| 204 |
|
---|
| 205 | - ldver=`$LD --version 2>/dev/null | head -1 | \
|
---|
| 206 | + ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
---|
| 207 | sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
---|
| 208 |
|
---|
| 209 | glibcxx_gnu_ld_version=`echo $ldver | \
|
---|
| 210 | @@ -78669,7 +78669,7 @@
|
---|
| 211 | echo "$as_me:$LINENO: checking for ld version" >&5
|
---|
| 212 | echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
---|
| 213 |
|
---|
| 214 | - ldver=`$LD --version 2>/dev/null | head -1 | \
|
---|
| 215 | + ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
---|
| 216 | sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
---|
| 217 |
|
---|
| 218 | glibcxx_gnu_ld_version=`echo $ldver | \
|
---|
| 219 | @@ -100561,7 +100561,7 @@
|
---|
| 220 | echo "$as_me:$LINENO: checking for ld version" >&5
|
---|
| 221 | echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
---|
| 222 |
|
---|
| 223 | - ldver=`$LD --version 2>/dev/null | head -1 | \
|
---|
| 224 | + ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
---|
| 225 | sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
---|
| 226 |
|
---|
| 227 | glibcxx_gnu_ld_version=`echo $ldver | \
|
---|
| 228 | @@ -101408,7 +101408,7 @@
|
---|
| 229 | echo "$as_me:$LINENO: checking for ld version" >&5
|
---|
| 230 | echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
---|
| 231 |
|
---|
| 232 | - ldver=`$LD --version 2>/dev/null | head -1 | \
|
---|
| 233 | + ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
---|
| 234 | sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
---|
| 235 |
|
---|
| 236 | glibcxx_gnu_ld_version=`echo $ldver | \
|
---|
| 237 | @@ -102811,7 +102811,7 @@
|
---|
| 238 | echo "$as_me:$LINENO: checking for ld version" >&5
|
---|
| 239 | echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
---|
| 240 |
|
---|
| 241 | - ldver=`$LD --version 2>/dev/null | head -1 | \
|
---|
| 242 | + ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
---|
| 243 | sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
---|
| 244 |
|
---|
| 245 | glibcxx_gnu_ld_version=`echo $ldver | \
|
---|
| 246 | @@ -104606,7 +104606,7 @@
|
---|
| 247 | echo "$as_me:$LINENO: checking for ld version" >&5
|
---|
| 248 | echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
---|
| 249 |
|
---|
| 250 | - ldver=`$LD --version 2>/dev/null | head -1 | \
|
---|
| 251 | + ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
---|
| 252 | sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
---|
| 253 |
|
---|
| 254 | glibcxx_gnu_ld_version=`echo $ldver | \
|
---|
| 255 | @@ -105851,7 +105851,7 @@
|
---|
| 256 | echo "$as_me:$LINENO: checking for ld version" >&5
|
---|
| 257 | echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
---|
| 258 |
|
---|
| 259 | - ldver=`$LD --version 2>/dev/null | head -1 | \
|
---|
| 260 | + ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
---|
| 261 | sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
---|
| 262 |
|
---|
| 263 | glibcxx_gnu_ld_version=`echo $ldver | \
|
---|
| 264 | @@ -106880,7 +106880,7 @@
|
---|
| 265 | echo "$as_me:$LINENO: checking for ld version" >&5
|
---|
| 266 | echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
---|
| 267 |
|
---|
| 268 | - ldver=`$LD --version 2>/dev/null | head -1 | \
|
---|
| 269 | + ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
---|
| 270 | sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
---|
| 271 |
|
---|
| 272 | glibcxx_gnu_ld_version=`echo $ldver | \
|
---|
| 273 | diff -Naur gcc-4.2.0.orig/ltcf-c.sh gcc-4.2.0/ltcf-c.sh
|
---|
| 274 | --- gcc-4.2.0.orig/ltcf-c.sh 2007-05-16 19:21:19.000000000 -0400
|
---|
| 275 | +++ gcc-4.2.0/ltcf-c.sh 2007-05-18 16:41:18.000000000 -0400
|
---|
| 276 | @@ -153,7 +153,7 @@
|
---|
| 277 | # If the export-symbols file already is a .def file (1st line
|
---|
| 278 | # is EXPORTS), use it as is.
|
---|
| 279 | # If DATA tags from a recent dlltool are present, honour them!
|
---|
| 280 | - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
|
---|
| 281 | + archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
|
---|
| 282 | cp $export_symbols $output_objdir/$soname-def;
|
---|
| 283 | else
|
---|
| 284 | echo EXPORTS > $output_objdir/$soname-def;
|
---|
| 285 | diff -Naur gcc-4.2.0.orig/ltcf-gcj.sh gcc-4.2.0/ltcf-gcj.sh
|
---|
| 286 | --- gcc-4.2.0.orig/ltcf-gcj.sh 2007-05-16 19:21:35.000000000 -0400
|
---|
| 287 | +++ gcc-4.2.0/ltcf-gcj.sh 2007-05-18 16:41:29.000000000 -0400
|
---|
| 288 | @@ -156,7 +156,7 @@
|
---|
| 289 | # If the export-symbols file already is a .def file (1st line
|
---|
| 290 | # is EXPORTS), use it as is.
|
---|
| 291 | # If DATA tags from a recent dlltool are present, honour them!
|
---|
| 292 | - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
|
---|
| 293 | + archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
|
---|
| 294 | cp $export_symbols $output_objdir/$soname-def;
|
---|
| 295 | else
|
---|
| 296 | echo EXPORTS > $output_objdir/$soname-def;
|
---|