diff options
author | Max Kellermann <max@musicpd.org> | 2017-08-31 19:46:30 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-08-31 19:48:59 +0200 |
commit | 3717fb6c8dab919b44361918c6f7c91efac2dcb3 (patch) | |
tree | 91a1ea9300af8ce72c8c6728cf44b457ad33f26c /win32 | |
parent | f6abbc01bd79d86ca72b0cbf9d0c09210866fdac (diff) |
win32/build.py: add -march=pentium3 to fix 32 bit LAME build
Workaround for the following LAME build failure:
error: inlining failed in call to always_inline '_mm_sqrt_ps': target
specific option mismatch
This is because the LAME build scripts do not check whether SSE is
available; they only check for the presence of the "xmmintrin.h"
header.
Requiring a Pentium 3 CPU is reasonable enough, and it's the first CPU
to feature SSE support.
Diffstat (limited to 'win32')
-rwxr-xr-x | win32/build.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/win32/build.py b/win32/build.py index c6dd7005e..d2b1aef1a 100755 --- a/win32/build.py +++ b/win32/build.py @@ -51,6 +51,11 @@ class CrossGccToolchain: self.strip = os.path.join(toolchain_bin, arch + '-strip') common_flags = '' + + if not x64: + # enable SSE support which is required for LAME + common_flags += ' -march=pentium3' + self.cflags = '-O2 -g ' + common_flags self.cxxflags = '-O2 -g ' + common_flags self.cppflags = '-isystem ' + os.path.join(install_prefix, 'include') |