aboutsummaryrefslogtreecommitdiff
path: root/m4
Commit message (Collapse)AuthorAge
* build: respect environment options more (#1392)Sam James2022-01-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * build: update m4/ax_pthread.m4 from serial 23 -> serial 31 Update ax_pthread.m4 to the latest version from the autoconf-archive project. Signed-off-by: Sam James <sam@gentoo.org> * build: properly detect AR, CC, RANLIB It's necessary to be able to override choice of AR/CC/RANLIB and other toolchain variables/tools for cross-compilation, testing with other toolchains, and to ensure the compiler chosen by the user is actually used for the build. Previously, GNU_PREFIX was kind-of used for this but this isn't a standard variable (at all) and it wasn't applied consistently anyway. We now use the standard autoconf mechanisms for finding these tools. (RANLIB is already covered by LT_INIT.) Signed-off-by: Sam James <sam@gentoo.org> * build: use $(MAKE) This ensures that parallel make works correctly, as otherwise, a fresh make job will be started without the jobserver fd, and hence not know about its parent, forcing -j1. * build: respect CPPFLAGS, LDFLAGS - CPPFLAGS is for the C preprocessor (usually for setting defines) - LDFLAGS should be placed before objects for certain flags to work (e.g. -Wl,--as-needed) Signed-off-by: Sam James <sam@gentoo.org> Co-authored-by: Luca Deri <lucaderi@users.noreply.github.com>
* Allow -fsanitize for LLVM as well as for GCC.Toni Uhlig2020-06-23
| | | | | | | | | | | | | | * renamed --with-llvm-sanitizer to --with-sanitizer * disable all optimisations (-O0) if --with-sanitizer set, no functions/paramaters/variables will be optimised, improves debugging * enable undefined behaviour sanitizer (ubsan) * enable leak sanitizer (lsan) * check if -fsanitize=fuzzer is available and --enable-fuzztargets set, fail if not (only supported by clang) * include level 3 debugging information (-g3), improves macro debugging * disabled ubsan misaligned pointer access and lshift overflow Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Update ax_pthreadAlexis La Goutte2016-11-28
| | | | | | | for fix issue when build with clang on macos clang: error: argument unused during compilation: '-pthread' No need -pthread when linking
* Initial import from SVNLuca Deri2015-04-19