From 4ad8498d7b6985a966227c5319add494d6284ec2 Mon Sep 17 00:00:00 2001 From: bebbo Date: Fri, 9 Jun 2017 09:24:14 +0200 Subject: [PATCH] @N support Cygwin 64bit --- patches/gawk-3.1.8/posix/gawmisc.diff | 9 +++++++++ toolchain-m68k | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 patches/gawk-3.1.8/posix/gawmisc.diff diff --git a/patches/gawk-3.1.8/posix/gawmisc.diff b/patches/gawk-3.1.8/posix/gawmisc.diff new file mode 100755 index 0000000..b6a5f22 --- /dev/null +++ b/patches/gawk-3.1.8/posix/gawmisc.diff @@ -0,0 +1,9 @@ +*** gawk-3.1.8/posix/gawkmisc.c 2017-06-09 08:04:35.260364000 +0200 +--- gawk-3.1.8-patched/posix/gawkmisc.c 2017-06-08 23:54:41.644575800 +0200 +*************** +*** 1,3 **** +--- 1,4 ---- ++ #include + /* gawkmisc.c --- miscellaneous gawk routines that are OS specific. + + Copyright (C) 1986, 1988, 1989, 1991 - 1998, 2001 - 2004 the Free Software Foundation, Inc. diff --git a/toolchain-m68k b/toolchain-m68k index 8f43a27..cc0eb86 100755 --- a/toolchain-m68k +++ b/toolchain-m68k @@ -403,6 +403,7 @@ def _build(pull): make('{m4}', 'install') unpack('{gawk}') + patch('{gawk}') update_autotools('{sources}/{gawk}') configure('{gawk}', '--prefix={host}') make('{gawk}') @@ -492,7 +493,7 @@ def _build(pull): '--prefix={prefix}', '--infodir={prefix}/{target}/info', '--mandir={prefix}/share/man', - '--host=i686-linux-gnu' if fill_in('{binutils}') != 'binutils-2.14' or platform.system() == 'Darwin' else '--prefix={prefix}', + '--host=i686-linux-gnu' if fill_in('{binutils}') != 'binutils-2.14' or platform.system() == 'Darwin' or fnmatch(platform.system(), "CYGWIN*") else '--prefix={prefix}', '--target=m68k-amigaos', from_dir='{submodules}/{binutils}') touch_genfiles('{submodules}/{binutils}')