Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 765652
Collapse All | Expand All

(-)a/dev-lang/tcc/tcc-0.9.27.ebuild (+6 lines)
Lines 37-46 src_prepare() { Link Here
37
}
37
}
38
38
39
src_configure() {
39
src_configure() {
40
	local libc
41
40
	use test && unset CFLAGS LDFLAGS # Tests run with CC=tcc etc, they will fail hard otherwise
42
	use test && unset CFLAGS LDFLAGS # Tests run with CC=tcc etc, they will fail hard otherwise
41
					# better fixes welcome, it feels wrong to hack the env like this
43
					# better fixes welcome, it feels wrong to hack the env like this
44
	use elibc_musl && libc=musl
45
	use elibc_uclibc && libc=uClibc
46
42
	# not autotools, so call configure directly
47
	# not autotools, so call configure directly
43
	./configure --cc="$(tc-getCC)" \
48
	./configure --cc="$(tc-getCC)" \
49
		${libc:+--config-${libc}} \
44
		--prefix="${EPREFIX}/usr" \
50
		--prefix="${EPREFIX}/usr" \
45
		--libdir="${EPREFIX}/usr/$(get_libdir)" \
51
		--libdir="${EPREFIX}/usr/$(get_libdir)" \
46
		--docdir="${EPREFIX}/usr/share/doc/${PF}"
52
		--docdir="${EPREFIX}/usr/share/doc/${PF}"
(-)a/dev-lang/tcc/tcc-9999.ebuild (+6 lines)
Lines 46-55 src_prepare() { Link Here
46
}
46
}
47
47
48
src_configure() {
48
src_configure() {
49
	local libc
50
49
	use test && unset CFLAGS LDFLAGS # Tests run with CC=tcc etc, they will fail hard otherwise
51
	use test && unset CFLAGS LDFLAGS # Tests run with CC=tcc etc, they will fail hard otherwise
50
					# better fixes welcome, it feels wrong to hack the env like this
52
					# better fixes welcome, it feels wrong to hack the env like this
53
	use elibc_musl && libc=musl
54
	use elibc_uclibc && libc=uClibc
55
51
	# not autotools, so call configure directly
56
	# not autotools, so call configure directly
52
	./configure --cc="$(tc-getCC)" \
57
	./configure --cc="$(tc-getCC)" \
58
		${libc:+--config-${libc}} \
53
		--prefix="${EPREFIX}/usr" \
59
		--prefix="${EPREFIX}/usr" \
54
		--libdir="${EPREFIX}/usr/$(get_libdir)" \
60
		--libdir="${EPREFIX}/usr/$(get_libdir)" \
55
		--docdir="${EPREFIX}/usr/share/doc/${PF}"
61
		--docdir="${EPREFIX}/usr/share/doc/${PF}"

Return to bug 765652