0
0
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:
Cyrill Gorcunov 2018-12-23 17:15:41 +03:00
parent 26191f845a
commit 8274623093
2 changed files with 10 additions and 1 deletions

View 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])])

View File

@ -233,7 +233,7 @@ dnl
dnl support function sections (if available)
dnl
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([-fdata-sections])