From 51f28a5084c445ff0c6be7b05276ec4dd317cd22 Mon Sep 17 00:00:00 2001 From: Sergei Reznikov Date: Thu, 10 Jul 2014 14:52:42 +0400 Subject: [PATCH] libsndfile: fix hybrid support --- media-libs/libsndfile/libsndfile-1.0.25.recipe | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/media-libs/libsndfile/libsndfile-1.0.25.recipe b/media-libs/libsndfile/libsndfile-1.0.25.recipe index 723895751..347c2da07 100644 --- a/media-libs/libsndfile/libsndfile-1.0.25.recipe +++ b/media-libs/libsndfile/libsndfile-1.0.25.recipe @@ -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 }