From 749d17913aa40cd3685e10aa46472388565dc781 Mon Sep 17 00:00:00 2001 From: bebbo Date: Wed, 18 Oct 2017 22:14:31 +0200 Subject: [PATCH] be nicer to gcc-3.4.6 --- patches/gcc-3.4.6/gcc/version.c.diff | 11 +++++++++++ toolchain-m68k | 5 ++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 patches/gcc-3.4.6/gcc/version.c.diff diff --git a/patches/gcc-3.4.6/gcc/version.c.diff b/patches/gcc-3.4.6/gcc/version.c.diff new file mode 100644 index 0000000..406507d --- /dev/null +++ b/patches/gcc-3.4.6/gcc/version.c.diff @@ -0,0 +1,11 @@ +--- gcc-3.4.6/gcc/version.c 2006-03-06 04:49:27.000000000 +0100 ++++ gcc-3.4.6-patched/gcc/version.c 2017-10-18 22:09:49.506277500 +0200 +@@ -5,7 +5,7 @@ + please modify this string to indicate that, e.g. by putting your + organization's name in parentheses at the end of the string. */ + +-const char version_string[] = "3.4.6"; ++const char version_string[] = "3.4.6b"; + + /* This is the location of the online document giving instructions for + reporting bugs. If you distribute a modified version of GCC, diff --git a/toolchain-m68k b/toolchain-m68k index de77f0c..e0dc748 100755 --- a/toolchain-m68k +++ b/toolchain-m68k @@ -126,7 +126,10 @@ def install_tools(): def install_libamiga(): info('installing libamiga') - copytree('{sources}/{libamiga}/lib', '{prefix}/{target}/libnix/lib') + if fill_in('{gcc}') == 'gcc-3.4.6': + copytree('{sources}/{libamiga}/lib', '{prefix}/{target}/lib') + else: + copytree('{sources}/{libamiga}/lib', '{prefix}/{target}/libnix/lib') @recipe('{clib2}-install')