From bf85809783ba11c9018c03f5a26508fa856ff3f8 Mon Sep 17 00:00:00 2001 From: Tomáš Chvátal Date: Mon, 1 Aug 2011 17:41:29 +0200 Subject: Fix segmentation fault when linking -mavx on new CPUs is enabled by explicitly adding -mno-avx to CXXFLAGS. --- bridges/source/cpp_uno/gcc3_linux_intel/makefile.mk | 2 +- bridges/source/cpp_uno/gcc3_linux_x86-64/makefile.mk | 2 +- bridges/source/cpp_uno/mingw_intel/makefile.mk | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bridges/source/cpp_uno/gcc3_linux_intel/makefile.mk b/bridges/source/cpp_uno/gcc3_linux_intel/makefile.mk index beedf9daf..eae6df44e 100644 --- a/bridges/source/cpp_uno/gcc3_linux_intel/makefile.mk +++ b/bridges/source/cpp_uno/gcc3_linux_intel/makefile.mk @@ -50,7 +50,7 @@ CFLAGS += -DLEAK_STATIC_DATA # In case someone enabled the non-standard -fomit-frame-pointer which does not # work with the .cxx sources in this directory: -CFLAGSCXX += -fno-omit-frame-pointer -fno-strict-aliasing +CFLAGSCXX += -fno-omit-frame-pointer -fno-strict-aliasing -mno-avx CFLAGSNOOPT=-O0 diff --git a/bridges/source/cpp_uno/gcc3_linux_x86-64/makefile.mk b/bridges/source/cpp_uno/gcc3_linux_x86-64/makefile.mk index dd3543233..ad5de1a4a 100644 --- a/bridges/source/cpp_uno/gcc3_linux_x86-64/makefile.mk +++ b/bridges/source/cpp_uno/gcc3_linux_x86-64/makefile.mk @@ -50,7 +50,7 @@ CFLAGS += -DLEAK_STATIC_DATA # In case someone enabled the non-standard -fomit-frame-pointer which does not # work with the .cxx sources in this directory: -CFLAGSCXX += -fno-omit-frame-pointer -fno-strict-aliasing +CFLAGSCXX += -fno-omit-frame-pointer -fno-strict-aliasing -mno-avx SLOFILES= \ $(SLO)$/abi.obj \ diff --git a/bridges/source/cpp_uno/mingw_intel/makefile.mk b/bridges/source/cpp_uno/mingw_intel/makefile.mk index 2c7a8da48..a3c2b2af6 100644 --- a/bridges/source/cpp_uno/mingw_intel/makefile.mk +++ b/bridges/source/cpp_uno/mingw_intel/makefile.mk @@ -49,7 +49,7 @@ CFLAGS += -DBROKEN_ALLOCA # In case someone enabled the non-standard -fomit-frame-pointer which does not # work with the .cxx sources in this directory: -CFLAGSCXX += -fno-omit-frame-pointer +CFLAGSCXX += -fno-omit-frame-pointer -mno-avx NOOPTFILES= \ $(SLO)$/uno2cpp.obj -- cgit v1.2.3