aboutsummaryrefslogtreecommitdiff
path: root/recipes-devtools/gcc/gcc-cross_4.7.bb
blob: 6d4b5b6f7b194bd4b39b6800e65a069239bd247e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require recipes-devtools/gcc/gcc-${PV}.inc
require recipes-devtools/gcc/gcc-cross4.inc

# The gcc-cross.inc pulls in gcc-package-cross.inc without specifying the
# complete path in the require directive. This hack ensures bitbake is
# pulling in the gcc-package-cross.inc from the meta-linaro layer.
require gcc-package-cross.inc

EXTRA_OECONF += "--disable-libunwind-exceptions \
                 --with-mpfr=${STAGING_DIR_NATIVE}${prefix_native} \
                 --with-system-zlib "

EXTRA_OECONF_PATHS = " \
                      --with-gxx-include-dir=${STAGING_DIR_TARGET}${target_includedir}/c++ \
                      --with-sysroot=${STAGING_DIR_TARGET} \
                      --with-build-sysroot=${STAGING_DIR_TARGET}"


ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_DIR_TARGET}${target_includedir}"