mirror of
https://review.haiku-os.org/buildtools
synced 2024-11-23 15:29:11 +01:00
gcc: LINK_SPEC: Gently refactor
Update LINK_SPEC (for arm, i386, x86_64 and ppc) with more compact but functionally equivalent sequences. Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
parent
aff4b1860d
commit
bfa8159478
@ -78,7 +78,7 @@
|
||||
#define LINK_SPEC \
|
||||
"%{!o*:-o %b} -m armelf \
|
||||
%{shared|r|pie|fno-pic|fno-PIC|fno-pie|fno-PIE:; \
|
||||
:-pie --allow-shlib-undefined --export-dynamic} %{nostart:-e 0} \
|
||||
%{shared:-shared -e 0} %{!shared: %{!nostart: -no-undefined}} \
|
||||
%{mbig-endian:-EB} %{mlittle-endian:-EL} -X"
|
||||
:-pie --allow-shlib-undefined --export-dynamic} %{shared:-shared} \
|
||||
%{nostart|shared:-e 0;:-no-undefined} %{mbig-endian:-EB} \
|
||||
%{mlittle-endian:-EL} -X"
|
||||
|
||||
|
@ -56,8 +56,8 @@ Boston, MA 02111-1307, USA. */
|
||||
#define LINK_SPEC \
|
||||
"-m elf_i386_haiku \
|
||||
%{shared|r|pie|fno-pic|fno-PIC|fno-pie|fno-PIE:; \
|
||||
:-pie --allow-shlib-undefined --export-dynamic} %{nostart:-e 0} \
|
||||
%{shared:-shared -e 0} %{!shared: %{!nostart: -no-undefined}}"
|
||||
:-pie --allow-shlib-undefined --export-dynamic} %{shared:-shared} \
|
||||
%{nostart|shared:-e 0;:-no-undefined}"
|
||||
|
||||
/* A C statement (sans semicolon) to output to the stdio stream
|
||||
FILE the assembler definition of uninitialized global DECL named
|
||||
|
@ -67,8 +67,8 @@ Boston, MA 02111-1307, USA. */
|
||||
#define LINK_SPEC \
|
||||
"%{" SPEC_64 ":-m elf_x86_64} %{" SPEC_32 ":-m elf_i386_haiku} \
|
||||
%{shared|r|pie|fno-pic|fno-PIC|fno-pie|fno-PIE:; \
|
||||
:-pie --allow-shlib-undefined --export-dynamic} %{nostart:-e 0} \
|
||||
%{shared:-shared -e 0} %{!shared: %{!nostart: -no-undefined}}"
|
||||
:-pie --allow-shlib-undefined --export-dynamic} %{shared:-shared} \
|
||||
%{nostart|shared:-e 0;:-no-undefined}"
|
||||
|
||||
/* A C statement (sans semicolon) to output to the stdio stream
|
||||
FILE the assembler definition of uninitialized global DECL named
|
||||
|
@ -56,8 +56,8 @@ Boston, MA 02111-1307, USA. */
|
||||
#define LINK_SPEC \
|
||||
"%{!o*:-o %b} -m elf32ppchaiku \
|
||||
%{shared|r|pie|fno-pic|fno-PIC|fno-pie|fno-PIE:; \
|
||||
:-pie --allow-shlib-undefined --export-dynamic} %{nostart:-e 0} \
|
||||
%{shared:-shared -e 0} %{!shared: %{!nostart: -no-undefined}}"
|
||||
:-pie --allow-shlib-undefined --export-dynamic} %{shared:-shared} \
|
||||
%{nostart|shared:-e 0;:-no-undefined}"
|
||||
|
||||
#undef CC1_SPEC
|
||||
#define CC1_SPEC \
|
||||
|
Loading…
Reference in New Issue
Block a user