summaryrefslogtreecommitdiff
path: root/libre/mplayer
diff options
context:
space:
mode:
Diffstat (limited to 'libre/mplayer')
-rw-r--r--libre/mplayer/PKGBUILD10
1 files changed, 7 insertions, 3 deletions
diff --git a/libre/mplayer/PKGBUILD b/libre/mplayer/PKGBUILD
index 82e83e8e6..e556dd62c 100644
--- a/libre/mplayer/PKGBUILD
+++ b/libre/mplayer/PKGBUILD
@@ -40,12 +40,16 @@ prepare() {
build() {
cd ${pkgbase}-${pkgver}
- export CFLAGS="${CFLAGS/-march=x86-64/}"
- export CFLAGS="${CFLAGS/-mtune=generic/}"
+
+ # CPU detection doesn't work in ARM
+ if [ "$CARCH" != "armv7h" ]; then
+ extra=--enable-runtime-cpudetection
+ fi
+
export LDFLAGS="${LDFLAGS/,O1/}"
export LDFLAGS="${LDFLAGS/,--sort-common/}"
./configure --prefix=/usr \
- --enable-runtime-cpudetection \
+ $extra \
--disable-gui \
--disable-arts \
--disable-liblzo \