summaryrefslogtreecommitdiffhomepage
path: root/vars/gcc.vars
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-03-11 13:58:25 -0400
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2019-03-12 08:02:22 +0000
commit3b1390d95d15c6cb3a4152f95cf76e8d01c1e667 (patch)
tree5d3f4470649eb14b93809cdb6e1d89a60e19c5b5 /vars/gcc.vars
parent222b30f7b5a3de134c080294439226bb4095e6f0 (diff)
downloadmidipix_build-3b1390d95d15c6cb3a4152f95cf76e8d01c1e667.tar.bz2
midipix_build-3b1390d95d15c6cb3a4152f95cf76e8d01c1e667.tar.xz
vars/gcc.vars: update target flags to match new SEH bits.
Signed-off-by: Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de>
Diffstat (limited to 'vars/gcc.vars')
-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}" \