Use -msse{2} -fpmath C-/CXXFLAGS only on x86_64 platforms
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Sun, 15 Apr 2018 06:49:43 +0000 (08:49 +0200)
committerCarsten Schoenert <c.schoenert@t-online.de>
Wed, 11 Sep 2019 15:54:10 +0000 (16:54 +0100)
The options -msse -msse2 -mfpmath=sse are only available on AMD64 based
platforms.

Gbp-Pq: Topic fixes
Gbp-Pq: Name Use-msse-2-fpmath-C-CXXFLAGS-only-on-x86_64-platforms.patch

build/unix/mozconfig.linux32

index b9ac630c5f784d28fa5c2a53f8a549883213cda4..cf68b495a76fdcc9e46038def6e7e29129bc4729 100644 (file)
@@ -2,12 +2,11 @@
 
 export MOZ_LINUX_32_SSE2_STARTUP_ERROR=1
 
-CFLAGS="$CFLAGS -msse -msse2 -mfpmath=sse"
-CXXFLAGS="$CXXFLAGS -msse -msse2 -mfpmath=sse"
-
 if test `uname -m` = "x86_64"; then
   CC="$CC -m32 -march=pentium-m"
   CXX="$CXX -m32 -march=pentium-m"
   ac_add_options --target=i686-pc-linux
   ac_add_options --host=i686-pc-linux
+  CFLAGS="$CFLAGS -msse -msse2 -mfpmath=sse"
+  CXXFLAGS="$CXXFLAGS -msse -msse2 -mfpmath=sse"
 fi