blob: 573410ee30074afdcb3d0f22a387fbf8906585ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
include cross-gcc-${PV}.oe
PN:=${PN}-initial
EXTRA_OECONF = --oldincludedir=${prefix}/include --enable-shared \
--enable-languages=c \
--disable-shared \
--disable-threads
do_configure_append () {
if (grep -q TARGET_LIBGCC2_CFLAGS ${tmake_file}); then
perl -pi -e 's/^(TARGET_LIBGCC2_CFLAGS.*)/$$1 -Dinhibit_libc -D__gthr_posix_h/' ${tmake_file}
else
echo 'TARGET_LIBGCC2_CFLAGS = -Dinhibit_libc -D__gthr_posix_h' >> ${tmake_file}
fi
echo 'T_CFLAGS = -Dinhibit_libc -D__gthr_posix_h' >> ${tmake_file}
}
|