From 8865c113a6608bbd7bdb80095c543e32307bab36 Mon Sep 17 00:00:00 2001 From: François Revol Date: Wed, 20 Jul 2016 04:40:19 +0200 Subject: [PATCH] gcc: correct LINK_SPEC for m68k We need to allow undefined symbols to link libgcc now... --- gcc/gcc/config/m68k/haiku.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/gcc/config/m68k/haiku.h b/gcc/gcc/config/m68k/haiku.h index 358c19f..84ee17a 100644 --- a/gcc/gcc/config/m68k/haiku.h +++ b/gcc/gcc/config/m68k/haiku.h @@ -108,7 +108,7 @@ #undef LINK_SPEC /*#define LINK_SPEC "%{!o*:-o %b} -m elf_m68k_haiku -shared -no-undefined %{nostart:-e 0}"*/ -#define LINK_SPEC "%{!o*:-o %b} -m m68kelf %{!r:-shared} -no-undefined %{nostart:-e 0}" +#define LINK_SPEC "%{!o*:-o %b} -m m68kelf %{!r:-shared} %{nostart:-e 0} %{shared:-e 0} %{!shared: %{!nostart: -no-undefined}}" /* XXX: not sure for the rest there... */ -- gitore 0.2.2