From f27ce3f0762820b2d81a8557237cc865c24a1124 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 25 Aug 2017 10:13:53 +0200 Subject: community/cringo: fixed building with g++ instead of clang++ --- community/clingo/PKGBUILD | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 community/clingo/PKGBUILD (limited to 'community/clingo/PKGBUILD') diff --git a/community/clingo/PKGBUILD b/community/clingo/PKGBUILD new file mode 100644 index 00000000..362b9ad9 --- /dev/null +++ b/community/clingo/PKGBUILD @@ -0,0 +1,15 @@ +# clang++ misses some C++ atomic stubs in the C++ library on 32-bit, +# g++ compiles and links fine +# also reported upstream: https://github.com/potassco/clingo/issues/57 + +# cmake +makedepends=(${makedepends[@]/clang}) + +# must be patched after cmake has run, hence it is in build +eval "$( + declare -f build | \ + sed ' + s/-DCMAKE_CXX_COMPILER=clang++/-DCMAKE_CXX_COMPILER=g++/ + /^\s*ninja\s*/i sed -i s/clang++/g++/g ${srcdir}/build/rules.ninja + ' +)" -- cgit v1.2.3-70-g09d2