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}" |