From 3b1390d95d15c6cb3a4152f95cf76e8d01c1e667 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 11 Mar 2019 13:58:25 -0400 Subject: vars/gcc.vars: update target flags to match new SEH bits. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lucio Andrés Illanes Albornoz --- vars/gcc.vars | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vars') 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}" \ -- cgit v1.2.3