From 12694050dd47350e93faf67ad49cf06745955b9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Mon, 28 Dec 2020 06:33:20 +0700 Subject: [PATCH] ccls: fix cross build --- srcpkgs/ccls/template | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/srcpkgs/ccls/template b/srcpkgs/ccls/template index 9e75e591409..2b0d8a4b94e 100644 --- a/srcpkgs/ccls/template +++ b/srcpkgs/ccls/template @@ -4,21 +4,15 @@ version=0.20201219 revision=1 build_style=cmake hostmakedepends="clang-tools-extra" -makedepends="clang llvm ncurses-devel rapidjson zlib-devel" +makedepends="llvm ncurses-devel rapidjson zlib-devel clang-tools-extra" short_desc="C/C++/ObjC language server" maintainer="Nathan Owens " license="Apache-2.0" homepage="https://github.com/MaskRay/ccls" distfiles="https://github.com/MaskRay/ccls/archive/${version}.tar.gz" checksum=edd3435bc7e55d9e5dc931932f9c98275a6a28d1ab1f66416110e029f3f2882a -nocross="Clang cannot be installed as makedep" if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then makedepends+=" libatomic-devel" + configure_args="-DCMAKE_CXX_STANDARD_LIBRARIES=-latomic" fi - -post_extract() { - if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then - echo "target_link_libraries(ccls PRIVATE atomic)" >> CMakeLists.txt - fi -}