⛏️ index : buildtools.git

author François Revol <revol@free.fr> 2016-07-20 4:40:19.0 +02:00:00
committer François Revol <revol@free.fr> 2016-07-20 4:40:19.0 +02:00:00
commit
8865c113a6608bbd7bdb80095c543e32307bab36 [patch]
tree
a38bc2ebe647f99b93f67e54deb0e0fc109946d3
parent
97e06d2ad65fa33e402a6d25b0035d0eb35d7dae
download
8865c113a6608bbd7bdb80095c543e32307bab36.tar.gz

gcc: correct LINK_SPEC for m68k

We need to allow undefined symbols to link libgcc now...

Diff

 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
+++ a/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... */