crosstool-ng/patches/gcc/3.3.2/gcc-3.3.2-trap-posix.patch
Yann E. MORIN" 1906cf93f8 Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
2007-02-24 11:00:05 +00:00

45 lines
1.2 KiB
Diff

#
# Submitted-By: Marc Kleine-Budde <mkl@pengutronix.de>, 2005-04-20
#
# Error:
#
# creating libintl.h
# Configuring etc...
# loading cache ../config.cache
# checking for a BSD compatible install... (cached) /usr/bin/install -c
# creating ./config.status
# creating Makefile
# trap: usage: trap [-lp] [[arg] signal_spec ...]
#
# Description:
#
# non-posix conform usage of trap causes bash >= 3.0 to fail
# e.g.: http://sourceware.org/ml/crossgcc/2004-12/msg00132.html
#
# Status:
#
# fixed in gcc >= 3.3.5
# backport of gcc-3.3.5 fix
#
diff -ruN gcc-3.3.2-orig/configure gcc-3.3.2/configure
--- gcc-3.3.2-orig/configure 2002-09-29 18:11:24.000000000 +0200
+++ gcc-3.3.2/configure 2005-04-20 20:55:51.000000000 +0200
@@ -697,7 +697,7 @@
if test -f skip-this-dir; then
# Perform the same cleanup as the trap handler, minus the "exit 1" of course,
# and reset the trap handler.
- trap 0
+ trap '' 0
rm -rf Makefile* ${tmpdir}
# Execute the final clean-up actions
${config_shell} skip-this-dir
@@ -1596,7 +1596,7 @@
# Perform the same cleanup as the trap handler, minus the "exit 1" of course,
# and reset the trap handler.
rm -rf ${tmpdir}
-trap 0
+trap '' 0
exit 0