From 5d242e9e054538dbb28353a9ddbc2bbbd494373e Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Fri, 13 Mar 2009 15:42:32 +0000 Subject: [PATCH] Add the -no-undefined flag only for non-shared objects as before, i.e. shared libraries are allowed to use undefined symbols. git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29490 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- gcc/gcc/config/i386/haiku.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/gcc/config/i386/haiku.h b/gcc/gcc/config/i386/haiku.h index 46f5c96..84d3c07 100644 --- a/gcc/gcc/config/i386/haiku.h +++ b/gcc/gcc/config/i386/haiku.h @@ -69,7 +69,7 @@ /* If ELF is the default format, we should not use /lib/elf. */ #undef LINK_SPEC -#define LINK_SPEC "-m elf_i386_haiku -shared -no-undefined -Bsymbolic %{nostart:-e 0} %{shared:-e 0}" +#define LINK_SPEC "-m elf_i386_haiku -shared -Bsymbolic %{nostart:-e 0} %{shared:-e 0} %{!shared: %{!nostart: -no-undefined}}" /* A C statement (sans semicolon) to output to the stdio stream FILE the assembler definition of uninitialized global DECL named -- gitore 0.2.2