summaryrefslogtreecommitdiff
path: root/patches/gcc/3.2.3/160-gcc-3.2.3-trap-posix.patch
blob: 4751e9dad8c2f2d75e6c9b8de5a0807653f17d18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 
# 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.2.3-orig/configure gcc-3.2.3/configure
--- gcc-3.2.3-orig/configure	2002-06-24 18:14:28.000000000 +0200
+++ gcc-3.2.3/configure	2005-04-20 18:42:49.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
@@ -1615,7 +1615,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