From 28aef158c0ca397e53bf2684d3380b88444b64bb Mon Sep 17 00:00:00 2001 From: Tobias Kortkamp Date: Sat, 7 Jul 2018 17:22:13 +0000 Subject: [PATCH] textproc/sablotron: Unbreak with Clang 6 Configure fails with In file included from conftest.cc:29: In file included from /usr/local/include/expat.h:45: In file included from /usr/include/c++/v1/stdlib.h:94: /usr/include/stdlib.h:97:1: error: function declared '[[noreturn]]' after its first declaration _Noreturn void exit(int); ^ /usr/include/sys/cdefs.h:280:22: note: expanded from macro '_Noreturn' #define _Noreturn [[noreturn]] ^ conftest.cc:20:6: note: declaration missing '[[noreturn]]' attribute is here void exit (int); ^ http://beefy12.nyi.freebsd.org/data/head-amd64-default/p474051_s336054/logs/Sablot-1.0.3_4.log --- textproc/sablotron/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/textproc/sablotron/Makefile b/textproc/sablotron/Makefile index 11b1cf69508e..cedf034a38b5 100644 --- a/textproc/sablotron/Makefile +++ b/textproc/sablotron/Makefile @@ -17,6 +17,7 @@ LIB_DEPENDS= libexpat.so:textproc/expat2 GNU_CONFIGURE= yes USES= gmake iconv libtool localbase:ldflags +USE_CXXSTD= c++98 USE_LDCONFIG= yes LDFLAGS+= ${ICONV_LIB}