diff options
author | Sam James <sam@gentoo.org> | 2021-10-25 13:38:23 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-10-25 13:38:23 +0100 |
commit | 1adaddf5110adeaf1e3b84d1d15d42e66798c4ef (patch) | |
tree | 2ca39f9f8265d605943397fef26f7d257a50e4ac /dev-lang | |
parent | dev-lang/tcc: add 0.9.27_p20211022 (glibc-2.34, security fixes) (diff) | |
download | gentoo-1adaddf5110adeaf1e3b84d1d15d42e66798c4ef.tar.gz gentoo-1adaddf5110adeaf1e3b84d1d15d42e66798c4ef.tar.bz2 gentoo-1adaddf5110adeaf1e3b84d1d15d42e66798c4ef.zip |
dev-lang/tcc: add musl/uclibc support
Closes: https://bugs.gentoo.org/765652
Bug: https://bugs.gentoo.org/715428
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/tcc/tcc-0.9.27_p20211022.ebuild | 6 | ||||
-rw-r--r-- | dev-lang/tcc/tcc-9999.ebuild | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/dev-lang/tcc/tcc-0.9.27_p20211022.ebuild b/dev-lang/tcc/tcc-0.9.27_p20211022.ebuild index f53743b5e6b9..3081fc06884e 100644 --- a/dev-lang/tcc/tcc-0.9.27_p20211022.ebuild +++ b/dev-lang/tcc/tcc-0.9.27_p20211022.ebuild @@ -51,11 +51,17 @@ src_prepare() { } src_configure() { + local libc + use test && unset CFLAGS LDFLAGS # Tests run with CC=tcc etc, they will fail hard otherwise # better fixes welcome, it feels wrong to hack the env like this + use elibc_musl && libc=musl + use elibc_uclibc && libc=uClibc + # not autotools, so call configure directly ./configure --cc="$(tc-getCC)" \ + ${libc:+--config-${libc}} \ --prefix="${EPREFIX}/usr" \ --libdir="${EPREFIX}/usr/$(get_libdir)" \ --docdir="${EPREFIX}/usr/share/doc/${PF}" diff --git a/dev-lang/tcc/tcc-9999.ebuild b/dev-lang/tcc/tcc-9999.ebuild index f53743b5e6b9..3081fc06884e 100644 --- a/dev-lang/tcc/tcc-9999.ebuild +++ b/dev-lang/tcc/tcc-9999.ebuild @@ -51,11 +51,17 @@ src_prepare() { } src_configure() { + local libc + use test && unset CFLAGS LDFLAGS # Tests run with CC=tcc etc, they will fail hard otherwise # better fixes welcome, it feels wrong to hack the env like this + use elibc_musl && libc=musl + use elibc_uclibc && libc=uClibc + # not autotools, so call configure directly ./configure --cc="$(tc-getCC)" \ + ${libc:+--config-${libc}} \ --prefix="${EPREFIX}/usr" \ --libdir="${EPREFIX}/usr/$(get_libdir)" \ --docdir="${EPREFIX}/usr/share/doc/${PF}" |