diff options
author | Sam James <sam@gentoo.org> | 2021-12-04 19:39:05 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-12-04 19:39:14 +0000 |
commit | 42665d35c9428894e0ba91ec92b3974f1b3866ca (patch) | |
tree | bc351012a0c436a8e65b84d1331836cb06580500 /sys-libs/libucontext | |
parent | app-editors/vim-core: Stabilize 8.2.3582 hppa, #820698 (diff) | |
download | gentoo-42665d35c9428894e0ba91ec92b3974f1b3866ca.tar.gz gentoo-42665d35c9428894e0ba91ec92b3974f1b3866ca.tar.bz2 gentoo-42665d35c9428894e0ba91ec92b3974f1b3866ca.zip |
sys-libs/libucontext: override arch detection for e.g. x86
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-libs/libucontext')
-rw-r--r-- | sys-libs/libucontext/libucontext-1.1.ebuild | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sys-libs/libucontext/libucontext-1.1.ebuild b/sys-libs/libucontext/libucontext-1.1.ebuild index 306709222308..0e825c18bc26 100644 --- a/sys-libs/libucontext/libucontext-1.1.ebuild +++ b/sys-libs/libucontext/libucontext-1.1.ebuild @@ -23,7 +23,21 @@ RESTRICT="test" src_compile() { tc-export AR CC - emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" all $(usev man 'docs') + local arch + + # Override arch detection + # https://github.com/kaniini/libucontext/blob/master/Makefile#L3 + if use x86 ; then + arch="x86" + elif use arm ; then + arch="arm" + elif use arm64 ; then + arch="aarch64" + elif use ppc64 ; then + arch="ppc64" + fi + + emake ARCH="${arch}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" all $(usev man 'docs') } src_test() { |