[packages/apache-mod_pagespeed] - drop all -m32/-m64 options, build gets confused on x32

baggins baggins at pld-linux.org
Sat Nov 21 15:44:36 CET 2015


commit 72de4a4c7ffef634d0459383ffdffa9a67513047
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Nov 21 15:43:59 2015 +0100

    - drop all -m32/-m64 options, build gets confused on x32

 apache-mod_pagespeed.spec |  2 ++
 no-force-xxbit.patch      | 57 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)
---
diff --git a/apache-mod_pagespeed.spec b/apache-mod_pagespeed.spec
index 1634157..3d18720 100644
--- a/apache-mod_pagespeed.spec
+++ b/apache-mod_pagespeed.spec
@@ -63,6 +63,7 @@ Patch1:		addrinfo.patch
 Patch2:		bug-632.patch
 Patch4:		no-dev-stdout.patch
 Patch5:		apache24-config.patch
+Patch6:		no-force-xxbit.patch
 URL:		https://developers.google.com/speed/pagespeed/module
 BuildRequires:	%{apxs}
 BuildRequires:	apache-devel >= 2.2
@@ -116,6 +117,7 @@ site is maintained.
 %patch2 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
 
 %if 0
 sh -x %{_sourcedir}/clean-source.sh
diff --git a/no-force-xxbit.patch b/no-force-xxbit.patch
new file mode 100644
index 0000000..fa48678
--- /dev/null
+++ b/no-force-xxbit.patch
@@ -0,0 +1,57 @@
+diff -ur modpagespeed-1.9.32.4/third_party/boringssl/src/util/32-bit-toolchain.cmake modpagespeed-1.9.32.4.no-arch/third_party/boringssl/src/util/32-bit-toolchain.cmake
+--- modpagespeed-1.9.32.4/third_party/boringssl/src/util/32-bit-toolchain.cmake	2015-07-14 01:16:58.000000000 +0200
++++ modpagespeed-1.9.32.4.no-arch/third_party/boringssl/src/util/32-bit-toolchain.cmake	2015-11-21 15:41:09.890876032 +0100
+@@ -2,6 +2,6 @@
+ set(CMAKE_SYSTEM_VERSION 1)
+ set(CMAKE_SYSTEM_PROCESSOR "x86")
+ 
+-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32 -msse2" CACHE STRING "c++ flags")
+-set(CMAKE_C_FLAGS   "${CMAKE_C_FLAGS} -m32 -msse2" CACHE STRING "c flags")
+-set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -m32 -msse2" CACHE STRING "asm flags")
++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse2" CACHE STRING "c++ flags")
++set(CMAKE_C_FLAGS   "${CMAKE_C_FLAGS} -msse2" CACHE STRING "c flags")
++set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -msse2" CACHE STRING "asm flags")
+diff -ur modpagespeed-1.9.32.4/third_party/chromium/src/build/common.gypi modpagespeed-1.9.32.4.no-arch/third_party/chromium/src/build/common.gypi
+--- modpagespeed-1.9.32.4/third_party/chromium/src/build/common.gypi	2015-07-14 01:16:58.000000000 +0200
++++ modpagespeed-1.9.32.4.no-arch/third_party/chromium/src/build/common.gypi	2015-11-21 15:40:36.750709600 +0100
+@@ -3250,11 +3250,9 @@
+                 # -mmmx allows mmintrin.h to be used for mmx intrinsics.
+                 # video playback is mmx and sse2 optimized.
+                 'cflags': [
+-                  '-m32',
+                   '-mmmx',
+                 ],
+                 'ldflags': [
+-                  '-m32',
+                 ],
+               }],
+             ],
+diff -ur modpagespeed-1.9.32.4/third_party/mod_spdy/src/build/common.gypi modpagespeed-1.9.32.4.no-arch/third_party/mod_spdy/src/build/common.gypi
+--- modpagespeed-1.9.32.4/third_party/mod_spdy/src/build/common.gypi	2015-07-14 01:17:14.000000000 +0200
++++ modpagespeed-1.9.32.4.no-arch/third_party/mod_spdy/src/build/common.gypi	2015-11-21 15:40:45.927420431 +0100
+@@ -640,11 +640,9 @@
+             # -mmmx allows mmintrin.h to be used for mmx intrinsics.
+             # video playback is mmx and sse2 optimized.
+             'cflags': [
+-              '-m32',
+               '-mmmx',
+             ],
+             'ldflags': [
+-              '-m32',
+             ],
+           }],
+           ['linux_fpic==1', {
+diff -ur modpagespeed-1.9.32.4/third_party/zlib/configure modpagespeed-1.9.32.4.no-arch/third_party/zlib/configure
+--- modpagespeed-1.9.32.4/third_party/zlib/configure	2015-07-14 01:17:17.000000000 +0200
++++ modpagespeed-1.9.32.4.no-arch/third_party/zlib/configure	2015-11-21 15:41:44.494402867 +0100
+@@ -108,8 +108,8 @@
+   SFLAGS="${CFLAGS--O3} -fPIC"
+   CFLAGS="${CFLAGS--O3}"
+   if test $build64 -eq 1; then
+-    CFLAGS="${CFLAGS} -m64"
+-    SFLAGS="${SFLAGS} -m64"
++    CFLAGS="${CFLAGS}"
++    SFLAGS="${SFLAGS}"
+   fi
+   if test "${ZLIBGCCWARN}" = "YES"; then
+     CFLAGS="${CFLAGS} -Wall -Wextra -pedantic"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/apache-mod_pagespeed.git/commitdiff/72de4a4c7ffef634d0459383ffdffa9a67513047



More information about the pld-cvs-commit mailing list