summarylogtreecommitdiffstats
path: root/use-new-cxx11-abi.patch
diff options
context:
space:
mode:
Diffstat (limited to 'use-new-cxx11-abi.patch')
-rw-r--r--use-new-cxx11-abi.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/use-new-cxx11-abi.patch b/use-new-cxx11-abi.patch
new file mode 100644
index 00000000000..6f5a991647f
--- /dev/null
+++ b/use-new-cxx11-abi.patch
@@ -0,0 +1,41 @@
+diff -aur --no-dereference radium.pristine/bin/packages/build.sh radium.new/bin/packages/build.sh
+--- radium.pristine/bin/packages/build.sh 2017-08-02 01:59:17.650319582 +0100
++++ radium.new/bin/packages/build.sh 2017-08-02 02:01:25.370318484 +0100
+@@ -195,9 +195,9 @@
+ # Build faust last since we reset the build flags.
+
+ # faust, debug
+-export CFLAGS="-mtune=generic -msse2 -mfpmath=sse -O0 -fsanitize=address -g -Wno-misleading-indentation -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -fno-strict-aliasing"
+-export CPPFLAGS="-mtune=generic -msse2 -mfpmath=sse -O0 -fsanitize=address -g -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -fno-strict-aliasing"
+-export CXXFLAGS="-mtune=generic -msse2 -mfpmath=sse -O0 -fsanitize=address -g -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -fno-strict-aliasing"
++export CFLAGS="-mtune=generic -msse2 -mfpmath=sse -O0 -fsanitize=address -g -Wno-misleading-indentation -fPIC -D_GLIBCXX_USE_CXX11_ABI=1 -fno-strict-aliasing"
++export CPPFLAGS="-mtune=generic -msse2 -mfpmath=sse -O0 -fsanitize=address -g -fPIC -D_GLIBCXX_USE_CXX11_ABI=1 -fno-strict-aliasing"
++export CXXFLAGS="-mtune=generic -msse2 -mfpmath=sse -O0 -fsanitize=address -g -fPIC -D_GLIBCXX_USE_CXX11_ABI=1 -fno-strict-aliasing"
+ export LDFLAGS="-fsanitize=address"
+ cd faust2
+ make -j `nproc`
+@@ -206,9 +206,9 @@
+ cd ..
+
+ #faust, release
+-export CFLAGS="-mtune=generic -msse2 -mfpmath=sse -O2 -g -Wno-misleading-indentation -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -fno-strict-aliasing"
+-export CPPFLAGS="-mtune=generic -msse2 -mfpmath=sse -O2 -g -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -fno-strict-aliasing"
+-export CXXFLAGS="-mtune=generic -msse2 -mfpmath=sse -O2 -g -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -fno-strict-aliasing"
++export CFLAGS="-mtune=generic -msse2 -mfpmath=sse -O2 -g -Wno-misleading-indentation -fPIC -D_GLIBCXX_USE_CXX11_ABI=1 -fno-strict-aliasing"
++export CPPFLAGS="-mtune=generic -msse2 -mfpmath=sse -O2 -g -fPIC -D_GLIBCXX_USE_CXX11_ABI=1 -fno-strict-aliasing"
++export CXXFLAGS="-mtune=generic -msse2 -mfpmath=sse -O2 -g -fPIC -D_GLIBCXX_USE_CXX11_ABI=1 -fno-strict-aliasing"
+ export LDFLAGS=""
+ cd faust2
+ make -j `nproc`
+diff -aur --no-dereference radium.pristine/Makefile.Qt radium.new/Makefile.Qt
+--- radium.pristine/Makefile.Qt 2017-08-02 01:59:17.600319582 +0100
++++ radium.new/Makefile.Qt 2017-08-02 02:00:50.420318784 +0100
+@@ -1780,7 +1780,7 @@
+ FAUST_OPTS = $(QTOPT) $(CPUOPT) -Ibin/packages/faust2/architecture $(WNO_SUGGEST_OVERRIDE) -Wno-overloaded-virtual
+
+ ifeq ($(GCC_MAJOR),7)
+- FAUST_OPTS += -D_GLIBCXX_USE_CXX11_ABI=0 -fno-sanitize=signed-integer-overflow
++ FAUST_OPTS += -D_GLIBCXX_USE_CXX11_ABI=1 -fno-sanitize=signed-integer-overflow
+ endif
+
+ Faust_plugins.o: audio/Faust_plugins.cpp audio/Faust_factory_factory.cpp $(FAUST_DEPENDENCIES)