Ticket #3472: gcc-haiku-shared.patch

File gcc-haiku-shared.patch, 644 bytes (added by kaliber, 15 years ago)

gcc -shared

  • gcc/config/i386/haiku.h

     
    6969/* If ELF is the default format, we should not use /lib/elf.  */
    7070
    7171#undef  LINK_SPEC
    72 #define LINK_SPEC "%{!o*:-o %b} -m elf_i386_haiku -shared -no-undefined -Bsymbolic %{nostart:-e 0}"
     72#define LINK_SPEC "%{!o*:-o %b} -m elf_i386_haiku -shared -no-undefined -Bsymbolic %{nostart:-e 0} %{shared:-e 0}"
    7373
    7474/* A C statement (sans semicolon) to output to the stdio stream
    7575   FILE the assembler definition of uninitialized global DECL named