From 3b1390d95d15c6cb3a4152f95cf76e8d01c1e667 Mon Sep 17 00:00:00 2001 From: midipix Date: Mar 12 2019 08:02:22 +0000 Subject: vars/gcc.vars: update target flags to match new SEH bits. Signed-off-by: Lucio Andrés Illanes Albornoz --- diff --git a/vars/gcc.vars b/vars/gcc.vars index 07453d7..345ad22 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}" \