configure.ac: drop -Wl,--no-keep-files-mapped from llvm-config --cxxflags output
commitf17b30012cbd60d6715bacc828c3ca0c9258c43d
authorSven Verdoolaege <sven.verdoolaege@gmail.com>
Sat, 17 Feb 2018 14:50:55 +0000 (17 15:50 +0100)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Sat, 17 Feb 2018 14:56:48 +0000 (17 15:56 +0100)
treeebff44e19e2bc549672bdbfc8917cfcf3876afdf
parenta12f2f2f73a9e1a77530b7c253058473550f2faf
configure.ac: drop -Wl,--no-keep-files-mapped from llvm-config --cxxflags output

Apparently, Ubuntu compiles clang with "-Wl,--no-keep-files-mapped",
which is a linker flag that is specific to gold, and it ends up
in the output of "llvm-config --cxxflags".  Now, "-fuse-ld=gold"
also appears in the output, but that flag apparently gets
stripped off by libtool, resulting in linker errors when
trying to link libpet.la if gold is not the default linker.
Arguably, these flags should not be included in the output
of "llvm-config --cxxflags", but remove "-Wl,--no-keep-files-mapped"
if it does.

Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
m4/ax_detect_clang.m4