mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-10-10 00:25:06 -04:00
More macro updates from the pa_autoconf library. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
15 lines
555 B
Plaintext
15 lines
555 B
Plaintext
dnl --------------------------------------------------------------------------
|
|
dnl PA_OPTION_GC
|
|
dnl
|
|
dnl Option to compile with garbage collection; currently only supports
|
|
dnl gcc/ELF. Enabled by default.
|
|
dnl --------------------------------------------------------------------------
|
|
AC_DEFUN([PA_OPTION_GC],
|
|
[PA_ARG_DISABLED([gc],
|
|
[do not compile with dead code garbage collection support],
|
|
[],
|
|
[PA_ADD_LDFLAGS([-Wl,--as-needed])
|
|
PA_ADD_LANGFLAGS([-ffunction-sections])
|
|
PA_ADD_LANGFLAGS([-fdata-sections])
|
|
PA_ADD_LDFLAGS([-Wl,--gc-sections])])])
|