From 99690f1bad0f1a8621f5bbc706a8ef0ba033ee68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Mon, 30 Jan 2017 03:00:23 +0000 Subject: build/gcc.full.build: fix gcc.{host,stage1}.mingw_w64 build. patches/gcc.stage1.mingw_w64.local.patch: force libiberty/pex-unix.c when targeting mingw_w64. subr/build.subr: create ${PREFIX}/man -> share/man symlink as w/ ${PREFIX_NATIVE}. subr/rtl.subr: obtain target from ${PKG_TARGET} in set_build_dir(). vars/build.vars: adds ${PKG_TARGET} var; reenables gcc.stage1.mingw_w64. --- build/gcc.full.build | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'build') diff --git a/build/gcc.full.build b/build/gcc.full.build index 75670fa8..ee597167 100644 --- a/build/gcc.full.build +++ b/build/gcc.full.build @@ -4,6 +4,7 @@ if [ "${3}" = mingw_w64 ]; then TARGET=x86_64-w64-mingw32; + PKG_TARGET=x86_64-w64-mingw32; if [ ! -L ${PREFIX}/${TARGET}/mingw ]; then secure_rm ${PREFIX}/${TARGET}/mingw; ln -sf . ${PREFIX}/${TARGET}/mingw; @@ -128,6 +129,10 @@ else _configure_args="${_configure_args} \ --disable-sjlj-exceptions"; fi; + if [ "${3}" = mingw_w64 ]\ + && [ -r ${MIDIPIX_BUILD_PWD}/patches/${PKG_NAME}.${2}.${3}.local.patch ]; then + patch -b -d ${PKG_SUBDIR} -p1 < ${MIDIPIX_BUILD_PWD}/patches/${PKG_NAME}.${2}.${3}.local.patch; + fi; secure_rm ${PKG_BUILD_DIR}; insecure_mkdir ${PKG_BUILD_DIR}; secure_cd ${PKG_BUILD_DIR}; -- cgit v1.2.3