PKGBUILDs/extra/soundtouch/01_remove_sse.patch
2011-11-03 23:10:09 -04:00

28 lines
937 B
Diff

Description: Remove -msse2 build option for gcc.
This flag is only available for amd64 and i386 archs.
Forwarded: yes
Bug-Debian: http://bugs.debian.org/479809
Last-Update: 2011-03-10
--- a/source/SoundTouch/Makefile.am
+++ b/source/SoundTouch/Makefile.am
@@ -36,7 +36,7 @@
# Note by authore: '-msse2' might not work in non-X86 compilations. If someone can
# fix this script to automatically check for CPU architecture, please submit a patch
# to me.
-AM_CXXFLAGS=-O3 -msse2 -fcheck-new -I../../include
+AM_CXXFLAGS=-O3 -fcheck-new -I../../include
# other linking flags to add
--- a/include/STTypes.h
+++ b/include/STTypes.h
@@ -93,7 +93,7 @@
/// routines compiled for whatever reason, you may disable these optimizations
/// to make the library compile.
- #define SOUNDTOUCH_ALLOW_X86_OPTIMIZATIONS 1
+ // #define SOUNDTOUCH_ALLOW_X86_OPTIMIZATIONS 1
#endif