summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--vars/gcc.vars7
1 files changed, 7 insertions, 0 deletions
diff --git a/vars/gcc.vars b/vars/gcc.vars
index 07453d74..345ad223 100644
--- a/vars/gcc.vars
+++ b/vars/gcc.vars
@@ -12,9 +12,13 @@ pkgp_gcc_setup_env() {
local __="";
export MAKE="make LIBTOOL=slibtool";
export cbb_target="${PKG_TARGET}";
+ unwind_midipix_h=$(readlink -f "${PKG_BASE_DIR}/cbb-gcc-${1}/gcc/unwind-midipix.h");
case "${PKG_NAME}" in
gcc_stage1_host)
GCCTARGET_FLAGS="-DIN_TARGET_LIBRARY_BUILD --sysroot=${PREFIX_CROSS}";
+ GCCTARGET_FLAGS="${GCCTARGET_FLAGS} --include=${unwind_midipix_h}";
+ GCCTARGET_FLAGS="${GCCTARGET_FLAGS} -DTARGET_PERSONALITY_FUNCTION";
+ GCCTARGET_FLAGS="${GCCTARGET_FLAGS} -DTARGET_PERSONALITY_FUNCTION_MIDIPIX";
export cbb_neutral_libiberty=no \
cbb_ldflags_for_target=--sysroot="${PREFIX_CROSS}" \
cbb_sysroot_for_libgcc="${PREFIX_CROSS}" \
@@ -33,6 +37,9 @@ pkgp_gcc_setup_env() {
cbb_xgcc_for_specs="${PKG_TARGET}-gcc"; ;;
gcc_full)
GCCTARGET_FLAGS="-DIN_TARGET_LIBRARY_BUILD --sysroot=${PKG_PREFIX}";
+ GCCTARGET_FLAGS="${GCCTARGET_FLAGS} --include=${unwind_midipix_h}";
+ GCCTARGET_FLAGS="${GCCTARGET_FLAGS} -DTARGET_PERSONALITY_FUNCTION";
+ GCCTARGET_FLAGS="${GCCTARGET_FLAGS} -DTARGET_PERSONALITY_FUNCTION_MIDIPIX";
export cbb_xgcc_for_specs="${PKG_TARGET}-gcc" \
cbb_ldflags_for_target=--sysroot="${PKG_PREFIX}" \
cbb_sysroot_for_libgcc="${PKG_PREFIX}" \