summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Jacquin <bertrand@jacquin.bzh>2014-05-03 15:20:15 +0200
committerBertrand Jacquin <bertrand@jacquin.bzh>2015-10-11 14:19:12 +0100
commitf9ed8db9e68634a91c4fd53f32c8b0fd58f169b7 (patch)
tree7dfae1c0c9a87f40a8d16a5590c5ba69b5ecced8 /media-libs/libass
parentapp-crypt/keybase: Version bump. (diff)
downloadgentoo-f9ed8db9e68634a91c4fd53f32c8b0fd58f169b7.tar.gz
gentoo-f9ed8db9e68634a91c4fd53f32c8b0fd58f169b7.tar.bz2
gentoo-f9ed8db9e68634a91c4fd53f32c8b0fd58f169b7.zip
media-libs/libass: Fix building for x32, bug #509460
Add upstream patch from commit 4778001 ("configure: Set the correct x32 machine option for yasm") Package-Manager: portage-2.2.20.1
Diffstat (limited to 'media-libs/libass')
-rw-r--r--media-libs/libass/files/0.13.0-configure-Set-the-correct-x32-machine-option-for-yas.patch26
-rw-r--r--media-libs/libass/libass-0.13.0.ebuild5
2 files changed, 31 insertions, 0 deletions
diff --git a/media-libs/libass/files/0.13.0-configure-Set-the-correct-x32-machine-option-for-yas.patch b/media-libs/libass/files/0.13.0-configure-Set-the-correct-x32-machine-option-for-yas.patch
new file mode 100644
index 000000000000..3688aad4a4d7
--- /dev/null
+++ b/media-libs/libass/files/0.13.0-configure-Set-the-correct-x32-machine-option-for-yas.patch
@@ -0,0 +1,26 @@
+From 4778001b673c73133d7d1dd48a385d0ca424ccfc Mon Sep 17 00:00:00 2001
+From: Luke Dashjr <luke-jr+git@utopios.org>
+Date: Sat, 10 Oct 2015 08:11:38 +0000
+Subject: [PATCH] configure: Set the correct x32 machine option for yasm
+
+---
+ configure.ac | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/configure.ac b/configure.ac
+index 117b23b..d6fbe34 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -56,6 +56,12 @@ AS_IF([test x$enable_asm != xno], [
+ X86=true
+ BITS=32
+ ASFLAGS="$ASFLAGS -DARCH_X86_64=0 -m x86" ],
++ [x86_64-*-gnux32|amd64-*-gnux32], [
++ AS=yasm
++ INTEL=true
++ X64=true
++ BITS=64
++ ASFLAGS="$ASFLAGS -DARCH_X86_64=1 -m x32" ],
+ [x86_64-*|amd64-*], [
+ AS=yasm
+ INTEL=true
diff --git a/media-libs/libass/libass-0.13.0.ebuild b/media-libs/libass/libass-0.13.0.ebuild
index 20df06146ee7..3646359d0d5f 100644
--- a/media-libs/libass/libass-0.13.0.ebuild
+++ b/media-libs/libass/libass-0.13.0.ebuild
@@ -31,6 +31,11 @@ done
DOCS="Changelog"
+src_prepare() {
+ # bug #509460
+ epatch "${FILESDIR}/${PV}-configure-Set-the-correct-x32-machine-option-for-yas.patch"
+}
+
multilib_src_configure() {
ECONF_SOURCE="${S}" econf \
$(use_enable fontconfig) \