Skip to contentSkip to conversation

libsigsegv: fix avr32 build

PATCH New spdawson at gmail.com 2 participants 2 messages Nov 5, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 libsigsegv: fix avr32 build

From: Simon Dawson <[email protected]>

The libsigsegv configure step fails to correctly figure out the direction of stack growth for avr32. This leads to a zero STACK_DIRECTION definition, and build failures such as the following.

http://autobuild.buildroot.net/results/a3fe938f9376533b4777d79deb7a2ee83ed5ce33

---
v2: autoreconf, instead of patching configure, recommended by Peter Korsgaard

 .../libsigsegv/libsigsegv-0001-fix-avr32-build.patch | 20 ++++++++++++++++++++
 package/libsigsegv/libsigsegv.mk                     |  2 ++
 2 files changed, 22 insertions(+)
 create mode 100644 package/libsigsegv/libsigsegv-0001-fix-avr32-build.patch
package/libsigsegv/libsigsegv-0001-fix-avr32-build.patch new file +20 -0
new file mode 100644
index 0000000..f585764
@@ -0,0 +1,20 @@
+The libsigsegv configure step fails to correctly figure out the direction of
+stack growth for avr32. This leads to a zero STACK_DIRECTION definition, and
+build failures such as the following.
+
+  http://autobuild.buildroot.net/results/a3fe938f9376533b4777d79deb7a2ee83ed5ce33
+
+Signed-off-by: Simon Dawson <[email protected]>
+
+diff -Nurp a/m4/stack-direction.m4 b/m4/stack-direction.m4
+--- a/m4/stack-direction.m4	2009-11-21 12:22:45.000000000 +0000
++++ b/m4/stack-direction.m4	2013-11-04 09:29:27.558036038 +0000
+@@ -16,7 +16,7 @@ AC_DEFUN([SV_STACK_DIRECTION],
+       alpha* | \
+       arc | \
+       arm* | strongarm* | xscale* | \
+-      avr | \
++      avr | avr32 | \
+       c1 | c2 | c32 | c34 | c38 | \
+       clipper | \
+       cris | \
package/libsigsegv/libsigsegv.mk +2 -0
index 2cc2544..a5bb31c 100644
@@ -11,4 +11,6 @@ LIBSIGSEGV_CONF_ENV = sv_cv_fault_posix=yes
 LIBSIGSEGV_LICENSE = GPLv2+
 LIBSIGSEGV_LICENSE_FILES = COPYING
 
+LIBSIGSEGV_AUTORECONF = YES
+
 $(eval $(autotools-package))
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH v2 1/1 libsigsegv: fix avr32 build

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"spdawson" == spdawson <[email protected]> writes:

From: Simon Dawson <[email protected]>
The libsigsegv configure step fails to correctly figure out the direction of stack growth for avr32. This leads to a zero STACK_DIRECTION definition, and build failures such as the following.

Quoted 5 lines

http://autobuild.buildroot.net/results/a3fe938f9376533b4777d79deb7a2ee83ed5ce33

---
v2: autoreconf, instead of patching configure, recommended by Peter
Korsgaard

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard