configure.ac: drop -gsplit-dwarf from llvm-config --cxxflags output
commitd5f22c92dae8529cd7fcc07f2aab7ceb1d682cb4
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 25 Apr 2017 14:32:47 +0000 (25 16:32 +0200)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Thu, 17 Aug 2017 13:32:54 +0000 (17 15:32 +0200)
treeb0f402456aec73b90435054a7e045b902b7da6eb
parentb6bbec9d0d4b3d67e8d99ed2972fdf82eae4b7a2
configure.ac: drop -gsplit-dwarf from llvm-config --cxxflags output

Apparently, Ubuntu compiles clang with -gsplit-dwarf.
This results in -gsplit-dwarf appearing in the output of
llvm-config --cxxflags and subsequently causing *.dwo files
to be generated.  These do not get cleaned by "make mostlyclean" and
therefore cause "make distcheck" to fail.

Remove the flag from the llvm-config --cxxflags output
to avoid these files getting generated.

An alternative would be to clean up the files, by adding

MOSTLYCLEANFILES = $(am_libpet_la_OBJECTS:$(OBJEXT)=dwo)

to Makefile.am.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
m4/ax_detect_clang.m4