diff options
author | H. Peter Anvin <hpa@zytor.com> | 2018-12-22 18:17:16 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2018-12-22 18:17:16 -0800 |
commit | b0121dc312a83ab4912769e36c9f2cbe9493545d (patch) | |
tree | 0c892ba8247764e7ce5e50903fb15890df9aa23b /configure.ac | |
parent | 3c0b924c9d031cee8f3f9da7bb2405bf65ef30bb (diff) | |
download | nasm-b0121dc312a83ab4912769e36c9f2cbe9493545d.tar.gz |
autoconf: use librarized autoconf setup
I have been setting up a cross-project librarized autoconf setup; use
it for NASM as well.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index 1e981d03..1645ad4d 100644 --- a/configure.ac +++ b/configure.ac @@ -235,9 +235,9 @@ dnl PA_ARG_DISABLED([sections], [don't try to compile with function/data section support], [], - [PA_ADD_CLDFLAGS([-ffunction-sections]) - PA_ADD_CLDFLAGS([-fdata-sections]) - PA_ADD_CLDFLAGS([-Wl,--gc-sections])], + [PA_ADD_CFLAGS([-ffunction-sections]) + PA_ADD_CFLAGS([-fdata-sections]) + PA_ADD_LDFLAGS([-Wl,--gc-sections])] ) dnl @@ -245,7 +245,7 @@ dnl support LTO dnl PA_ARG_ENABLED([lto], [compile with gcc-style link time optimization], - [PA_ADD_CLDFLAGS([-flto]) + [PA_ADD_CFLAGS([-flto]) dnl Note: we use _PROG rather than _TOOL since we are prepending the full dnl CC name which ought to already contain the host triplet if needed ccbase=`echo "$CC" | awk '{ print $1; }'` @@ -260,14 +260,14 @@ dnl PA_ARG_ENABLED([sanitizer], [compile with sanitizers enabled], [PA_ADD_CFLAGS([-fno-omit-frame-pointer]) - PA_ADD_CLDFLAGS([-fsanitize=address]) - PA_ADD_CLDFLAGS([-fsanitize=undefined])]) + PA_ADD_CFLAGS([-fsanitize=address]) + PA_ADD_CFLAGS([-fsanitize=undefined])]) dnl dnl Don't make symbols visible, there is no point and it just dnl makes the code slower. dnl -PA_ADD_CLDFLAGS([-fvisibility=hidden]) +PA_ADD_CFLAGS([-fvisibility=hidden]) dnl If we have gcc, add appropriate code cleanliness options PA_ADD_CFLAGS([-W]) |