|
65.1.206
by Alexander Sack
* Fix LP: #236266 - "Build Failure on HPPA architecture" by applying patch |
1 |
Cherry Pick for Mozilla Bug: |
2 |
436133 - "Cookies build failure on hppa" |
|
3 |
https://bugzilla.mozilla.org/show_bug.cgi?id=436133 |
|
4 |
||
5 |
From Attachment: |
|
6 |
https://bugzilla.mozilla.org/attachment.cgi?id=322801 |
|
7 |
||
8 |
--
|
|
9 |
Index: configure.in
|
|
10 |
===================================================================
|
|
11 |
RCS file: /cvsroot/mozilla/configure.in,v |
|
12 |
retrieving revision 1.1992 |
|
13 |
diff -u -b -B -u -8 -p -r1.1992 configure.in
|
|
14 |
--- a/configure.in 5 May 2008 21:08:14 -0000 1.1992
|
|
15 |
+++ b/configure.in 28 May 2008 16:45:58 -0000
|
|
16 |
@@ -1237,16 +1237,20 @@ case "$OS_TEST" in
|
|
17 |
powerpc* | ppc) |
|
18 |
CPU_ARCH=ppc |
|
19 |
;; |
|
20 |
||
21 |
Alpha | alpha | ALPHA) |
|
22 |
CPU_ARCH=Alpha |
|
23 |
;; |
|
24 |
||
25 |
+hppa* | parisc)
|
|
26 |
+ CPU_ARCH=hppa
|
|
27 |
+ ;;
|
|
28 |
+
|
|
29 |
sun4u | sparc*) |
|
30 |
CPU_ARCH=sparc |
|
31 |
;; |
|
32 |
||
33 |
x86_64 | ia64) |
|
34 |
CPU_ARCH="$OS_TEST" |
|
35 |
;; |
|
36 |
esac |
|
37 |
@@ -1287,19 +1291,19 @@ if test "$GNU_CC"; then
|
|
38 |
# -Wall - turn on all warnings |
|
39 |
# -pedantic - make compiler warn about non-ANSI stuff, and |
|
40 |
# be a little bit stricter |
|
41 |
# Warnings slamm took out for now (these were giving more noise than help): |
|
42 |
# -Wbad-function-cast - warns when casting a function to a new return type |
|
43 |
# -Wconversion - complained when char's or short's were used a function args |
|
44 |
# -Wshadow - removed because it generates more noise than help --pete |
|
45 |
_WARNINGS_CFLAGS="${_WARNINGS_CFLAGS} -Wall -W -Wno-unused -Wpointer-arith"
|
|
46 |
- if test "$CPU_ARCH" != "ia64" && test "$CPU_ARCH" != "sparc" \
|
|
47 |
+ if test "$CPU_ARCH" != "hppa" && test "$CPU_ARCH" != "ia64" && test "$CPU_ARCH" != "sparc" \
|
|
48 |
&& test -z "$INTEL_CC"; then |
|
49 |
- # don't use -Wcast-align on ia64 or sparc, it's noisy on those platforms
|
|
50 |
+ # don't use -Wcast-align on hppa, ia64 or sparc, it's noisy on those platforms
|
|
51 |
# icc doesn't support this flag. |
|
52 |
_WARNINGS_CFLAGS="${_WARNINGS_CFLAGS} -Wcast-align"
|
|
53 |
fi |
|
54 |
||
55 |
dnl Turn pedantic on but disable the warnings for long long |
|
56 |
_PEDANTIC=1 |
|
57 |
||
58 |
if test -z "$INTEL_CC"; then |
|
59 |
@@ -1327,19 +1331,19 @@ else
|
|
60 |
_DEFINES_CFLAGS='$(ACDEFINES) -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT' |
|
61 |
fi |
|
62 |
||
63 |
if test "$GNU_CXX"; then |
|
64 |
# FIXME: Let us build with strict aliasing. bug 414641. |
|
65 |
CXXFLAGS="$CXXFLAGS -fno-strict-aliasing" |
|
66 |
# Turn on GNU specific features |
|
67 |
_WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} -Wall -Wconversion -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor"
|
|
68 |
- if test "$CPU_ARCH" != "ia64" && test "$CPU_ARCH" != "sparc" \
|
|
69 |
+ if test "$CPU_ARCH" != "hppa" && test "$CPU_ARCH" != "ia64" && test "$CPU_ARCH" != "sparc" \
|
|
70 |
&& test -z "$INTEL_CC"; then |
|
71 |
- # don't use -Wcast-align on ia64 or sparc, it's noisy on those platforms
|
|
72 |
+ # don't use -Wcast-align on hppa, ia64 or sparc, it's noisy on those platforms
|
|
73 |
# icc doesn't support this flag. |
|
74 |
_WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} -Wcast-align"
|
|
75 |
fi |
|
76 |
||
77 |
_DEFINES_CXXFLAGS='-DMOZILLA_CLIENT -include $(DEPTH)/mozilla-config.h' |
|
78 |
_USE_CPP_INCLUDE_FLAG=1 |
|
79 |
else |
|
80 |
_DEFINES_CXXFLAGS='-DMOZILLA_CLIENT -D_MOZILLA_CONFIG_H_ $(ACDEFINES)' |