Line
Link Here
|
0 |
-- a/sys-libs/glibc/glibc-2.20.ebuild |
0 |
++ b/sys-libs/glibc/glibc-2.20.ebuild |
Lines 138-143
Link Here
|
138 |
eblit-run-maybe eblit-$1-post |
138 |
eblit-run-maybe eblit-$1-post |
139 |
} |
139 |
} |
140 |
|
140 |
|
|
|
141 |
pkg_pretend() { |
142 |
# ABI-specific checks, but run only if the right target+destination conditions are met. |
143 |
if [[ ${CATEGORY} != cross-* ]] |
144 |
then |
145 |
# In a cross-compile situation we cannot (easily) probe the kernel that glibc will be running on. Skip the check |
146 |
use amd64 && use multilib && { |
147 |
ebegin "Checking IA32 emulation is enabled" |
148 |
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c" |
149 |
"${CC-${CHOST}-gcc}" ${CFLAGS_x86} "${T}/check-ia32-emulation.c" -o "${T}/check-ia32-emulation.elf32" |
150 |
"${T}/check-ia32-emulation.elf32" |
151 |
STAT=$? |
152 |
rm -f "${T}/check-ia32-emulation.elf32" |
153 |
eend $STAT |
154 |
[ $STAT -eq 0 ] || die "CONFIG_IA32_EMULATION must be enabled in the kernel to compile glibc" |
155 |
} |
156 |
fi |
157 |
} |
141 |
src_unpack() { eblit-run src_unpack ; } |
158 |
src_unpack() { eblit-run src_unpack ; } |
142 |
src_prepare() { eblit-run src_prepare ; } |
159 |
src_prepare() { eblit-run src_prepare ; } |
143 |
src_configure() { eblit-run src_configure ; } |
160 |
src_configure() { eblit-run src_configure ; } |