mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-07-24 10:25:42 -04:00
build: Add missing PA_ADD_LDFLAGS helper
Fixes b0121dc312a83ab4912769e36c9f2cbe9493545d Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
26191f845a
commit
8274623093
9
autoconf/m4/pa_add_ldflags.m4
Normal file
9
autoconf/m4/pa_add_ldflags.m4
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
dnl --------------------------------------------------------------------------
|
||||||
|
dnl PA_ADD_LDFLAGS(variable, flag [,actual_flag])
|
||||||
|
dnl
|
||||||
|
dnl Attempt to add the given option to xFLAGS, if it doesn't break
|
||||||
|
dnl compilation. If the option to be tested is different than the
|
||||||
|
dnl option that should actually be added, add the option to be
|
||||||
|
dnl actually added as a second argument.
|
||||||
|
dnl --------------------------------------------------------------------------
|
||||||
|
AC_DEFUN([PA_ADD_LDFLAGS], [PA_ADD_FLAGS(LDFLAGS, [$1], [$2])])
|
@ -233,7 +233,7 @@ dnl
|
|||||||
dnl support function sections (if available)
|
dnl support function sections (if available)
|
||||||
dnl
|
dnl
|
||||||
PA_ARG_DISABLED([sections],
|
PA_ARG_DISABLED([sections],
|
||||||
[don't try to compile with function/data section support],
|
[do not try to compile with function/data section support],
|
||||||
[],
|
[],
|
||||||
[PA_ADD_CFLAGS([-ffunction-sections])
|
[PA_ADD_CFLAGS([-ffunction-sections])
|
||||||
PA_ADD_CFLAGS([-fdata-sections])
|
PA_ADD_CFLAGS([-fdata-sections])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user