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
This commit is contained in:
Michael Lotz 2009-03-13 15:42:32 +00:00
parent 7219b3c58f
commit 5d242e9e05

View File

@ -69,7 +69,7 @@ Boston, MA 02111-1307, USA. */
/* 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