mirror of
https://github.com/autc04/Retro68.git
synced 2025-02-15 13:31:54 +00:00
enable -ffunction-sections for libgcc and libc
This commit is contained in:
parent
821bc04a7a
commit
a68112b08d
@ -233,6 +233,7 @@ LIBGCC2_DEBUG_CFLAGS = -g
|
||||
LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(HOST_LIBGCC2_CFLAGS) \
|
||||
$(LIBGCC2_DEBUG_CFLAGS) -DIN_LIBGCC2 \
|
||||
-fbuilding-libgcc -fno-stack-protector \
|
||||
-ffunction-sections \
|
||||
$(INHIBIT_LIBC_CFLAGS)
|
||||
|
||||
# Additional options to use when compiling libgcc2.a.
|
||||
|
@ -654,6 +654,10 @@ case "${host}" in
|
||||
newlib_cflags="${newlib_cflags} -DHAVE_RENAME -DHAVE_SYSTEM -DMISSING_SYSCALL_NAMES -DMALLOC_PROVIDED"
|
||||
syscall_dir=
|
||||
;;
|
||||
m68k-apple-macos)
|
||||
newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES -DMALLOC_PROVIDED"
|
||||
newlib_cflags="${newlib_cflags} -ffunction-sections"
|
||||
;;
|
||||
mcore-*-*)
|
||||
syscall_dir=syscalls
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user