diff options
author | Christian Hergert <christian@hergert.me> | 2015-09-01 15:13:19 -0700 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2015-09-02 00:33:56 +0200 |
commit | dece1b219362fecbae146d243548afd0e927f127 (patch) | |
tree | a82eb4d53a28da1890fdf9a96c82f1e97384915d /m4/ax_compiler_flags_ldflags.m4 | |
parent | 943d2eefc704710ce5c532c247e6c9c5bfa45829 (diff) | |
download | autoconf-archive-dece1b219362fecbae146d243548afd0e927f127.tar.gz |
AX_COMPILER_FLAGS_LDFLAGS: use AX_APPEND_LINK_FLAGS
Not all compilers will verify the correctness of flags to the linker, so
we need to explicitly use the linker when verifying flags.
Diffstat (limited to 'm4/ax_compiler_flags_ldflags.m4')
-rw-r--r-- | m4/ax_compiler_flags_ldflags.m4 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/m4/ax_compiler_flags_ldflags.m4 b/m4/ax_compiler_flags_ldflags.m4 index f393ba4..228471e 100644 --- a/m4/ax_compiler_flags_ldflags.m4 +++ b/m4/ax_compiler_flags_ldflags.m4 @@ -25,10 +25,10 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 4 +#serial 5 AC_DEFUN([AX_COMPILER_FLAGS_LDFLAGS],[ - AX_REQUIRE_DEFINED([AX_APPEND_COMPILE_FLAGS]) + AX_REQUIRE_DEFINED([AX_APPEND_LINK_FLAGS]) AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) AX_REQUIRE_DEFINED([AX_CHECK_COMPILE_FLAG]) @@ -48,14 +48,14 @@ AC_DEFUN([AX_COMPILER_FLAGS_LDFLAGS],[ ]) # Base flags - AX_APPEND_COMPILE_FLAGS([ dnl + AX_APPEND_LINK_FLAGS([ dnl -Wl,--no-as-needed dnl $3 dnl ],ax_warn_ldflags_variable,[$ax_compiler_flags_test]) AS_IF([test "$ax_enable_compile_warnings" != "no"],[ # "yes" flags - AX_APPEND_COMPILE_FLAGS([$4 $5 $6 $7], + AX_APPEND_LINK_FLAGS([$4 $5 $6 $7], ax_warn_ldflags_variable, [$ax_compiler_flags_test]) ]) @@ -65,7 +65,7 @@ AC_DEFUN([AX_COMPILER_FLAGS_LDFLAGS],[ # # suggest-attribute=format is disabled because it gives too many false # positives - AX_APPEND_COMPILE_FLAGS([ dnl + AX_APPEND_LINK_FLAGS([ dnl -Wl,--fatal-warnings dnl ],ax_warn_ldflags_variable,[$ax_compiler_flags_test]) ]) |