configure: add debugging options after compilation tests

some debugging options interfere with linker/compilation tests due to
the extra libraries that, for example, asan or ubsan draw into the
build. perform these checks fairly late to avoid these errors.
This commit is contained in:
Danny Robson 2016-05-12 17:51:10 +10:00
parent 1ec238638c
commit 9d77c01dd3

View File

@ -20,7 +20,6 @@ NC_CXX
NC_PLATFORM
NC_OPTIMISATION
NC_WARNINGS
NC_DEBUGGING
NC_SUBPACKAGE_ENABLE
@ -93,6 +92,11 @@ AC_SEARCH_LIBS([htons], [ws2_32], [], [AC_MSG_ERROR([unable to find htnos librar
###############################################################################
## Debug features
dnl debugging might enable sanitizers, which might alter the available
dnl libraries, so this needs to be called after we've completed our tests.
dnl specifically: -ldl is implied by some of the sanitizers.
NC_DEBUGGING
###############################################################################
## Documentation