Build failure with clang as C++ compiler
I've opened an issue against dynare for a build failure with clang: dynare#1753 (closed)
The issue comes from preprocessor/src/Makefile.am https://git.dynare.org/Dynare/preprocessor/-/blob/master/src/Makefile.am#L70
# The -I. is for <FlexLexer.h>
dynare_m_CPPFLAGS = $(BOOST_CPPFLAGS) -I.
dynare_m_LDFLAGS = $(AM_LDFLAGS) $(BOOST_LDFLAGS)
dynare_m_LDADD = macro/libmacro.a -lstdc++fs
This hardcodes the library as -lstdc++fs
, but that library name is specific to GCC. For clang >= 9, there is not specific library to link.
The library name should be autodetected, or set based on the compiler.