libsndfile: fix hybrid support

This commit is contained in:
Sergei Reznikov
2014-07-10 14:52:42 +04:00
committed by Kacper Kasper
parent 1cf83bb316
commit 51f28a5084

View File

@@ -11,13 +11,8 @@ LICENSE="GNU LGPL v2.1"
SRC_URI="http://www.mega-nerd.com/libsndfile/files/libsndfile-$portVersion.tar.gz"
CHECKSUM_SHA256="59016dbd326abe7e2366ded5c344c853829bebfd1702ef26a07ef662d6aa4882"
REVISION="2"
ARCHITECTURES="x86 x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
fi
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PATCHES="libsndfile-$portVersion.patchset"
@@ -65,6 +60,9 @@ BUILD()
aclocal -I M4
autoconf
automake
if [ $effectiveTargetArchitecture = x86_gcc2 ]; then
export CFLAGS=-O1
fi
runConfigure ./configure
make $jobArgs
}