3b1390 vars/gcc.vars: update target flags to match new SEH bits.

1 file Authored by midipix 6 years ago, Committed by Lucio Andrés Illanes Albornoz 6 years ago,
    vars/gcc.vars: update target flags to match new SEH bits.
    
    Signed-off-by: Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de>
    
        
file modified
+7 -0
vars/gcc.vars CHANGED
@@ -12,9 +12,13 @@ pkgp_gcc_setup_env() {
12
12
local __="";
13
13
export MAKE="make LIBTOOL=slibtool";
14
14
export cbb_target="${PKG_TARGET}";
15
+ unwind_midipix_h=$(readlink -f "${PKG_BASE_DIR}/cbb-gcc-${1}/gcc/unwind-midipix.h");
15
16
case "${PKG_NAME}" in
16
17
gcc_stage1_host)
17
18
GCCTARGET_FLAGS="-DIN_TARGET_LIBRARY_BUILD --sysroot=${PREFIX_CROSS}";
19
+ GCCTARGET_FLAGS="${GCCTARGET_FLAGS} --include=${unwind_midipix_h}";
20
+ GCCTARGET_FLAGS="${GCCTARGET_FLAGS} -DTARGET_PERSONALITY_FUNCTION";
21
+ GCCTARGET_FLAGS="${GCCTARGET_FLAGS} -DTARGET_PERSONALITY_FUNCTION_MIDIPIX";
18
22
export cbb_neutral_libiberty=no \
19
23
cbb_ldflags_for_target=--sysroot="${PREFIX_CROSS}" \
20
24
cbb_sysroot_for_libgcc="${PREFIX_CROSS}" \
@@ -33,6 +37,9 @@ pkgp_gcc_setup_env() {
33
37
cbb_xgcc_for_specs="${PKG_TARGET}-gcc"; ;;
34
38
gcc_full)
35
39
GCCTARGET_FLAGS="-DIN_TARGET_LIBRARY_BUILD --sysroot=${PKG_PREFIX}";
40
+ GCCTARGET_FLAGS="${GCCTARGET_FLAGS} --include=${unwind_midipix_h}";
41
+ GCCTARGET_FLAGS="${GCCTARGET_FLAGS} -DTARGET_PERSONALITY_FUNCTION";
42
+ GCCTARGET_FLAGS="${GCCTARGET_FLAGS} -DTARGET_PERSONALITY_FUNCTION_MIDIPIX";
36
43
export cbb_xgcc_for_specs="${PKG_TARGET}-gcc" \
37
44
cbb_ldflags_for_target=--sysroot="${PKG_PREFIX}" \
38
45
cbb_sysroot_for_libgcc="${PKG_PREFIX}" \