Package: opensips / 2.2.2-3.1

fix_armhf_ftbfs.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Unforce thumb mode and match proper arch.
Author: Razvan Crainea <razvan@opensips.org>
Last-Update: 2016-03-08
--- a/Makefile.defs
+++ b/Makefile.defs
@@ -87,10 +87,10 @@
 	GETARCH=uname -m
 endif
 
-HOST_ARCH := $(shell $(GETARCH) |sed -e s/i.86/i386/ -e s/sun4u/sparc64/  \
-			-e s/armv4l/arm/ -e "s/Power Macintosh/ppc/" \
-			-e s/sun4v/sparc64/ -e "s/cobalt/mips2/" \
-			-e s/amd64/x86_64/ )
+HOST_ARCH := $(shell $(GETARCH) |sed -e s/i.86/i386/ -e s/sun4[uv]/sparc64/  \
+			-e s/sparcv9/sparc64/ -e s/armv[3-5].*/arm/ \
+			-e s/armv6.*/arm6/ -e "s/Power Macintosh/ppc/" \
+			-e "s/cobalt/mips2/" -e s/amd64/x86_64/ )
 
 # fix sparc -> sparc64
 ifeq ($(HOST_ARCH),sparc)