blob: 1bf2d144cbd121c9e005e4467a6586a6659eb3d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
PROVIDES="virtual/${OLDARCH}-${OLDOS}-gcc"
SRC_URI = ${GNU_MIRROR}/gcc/gcc-${PV}.tar.gz
S = ${WORKDIR}/gcc-${PV}
CROSS_DIR := ${CROSS_DIR}
prefix=${CROSS_DIR}
exec_prefix=${prefix}
inherit cross autotools
EXTRA_OECONF = --oldincludedir=${prefix}/include --enable-shared \
--with-gxx-include-dir=${CROSS_DIR}/include/c++ \
--enable-shared \
--enable-threads
tmake_file = gcc/config/${OLDARCH}/t-linux
do_configure_append() {
touch ${tmake_file}
mv ${tmake_file} > ${tmake_file}.tmp
cat ${tmake_file}.tmp | sed -e's/-Dinhibit_libc -D__gthr_posix_h//g' > ${tmake_file}
rm -f ${tmake_file}.tmp
}
|