diff options
author | adam <adam@pkgsrc.org> | 2019-08-26 14:56:21 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2019-08-26 14:56:21 +0000 |
commit | 511ced33748f1a967422c83ff6ce09344b8da1c4 (patch) | |
tree | 3cd68acb078be1f2790a93ff9b56441741944330 /lang | |
parent | 5a19b4831bb0a07f3918e4e0f0cf75377bb02c25 (diff) | |
download | pkgsrc-511ced33748f1a967422c83ff6ce09344b8da1c4.tar.gz |
clang: fix CMAKE_ARGS.Darwin
Diffstat (limited to 'lang')
-rw-r--r-- | lang/clang/Makefile.common | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lang/clang/Makefile.common b/lang/clang/Makefile.common index 5e2da92732a..8fa4cb4d713 100644 --- a/lang/clang/Makefile.common +++ b/lang/clang/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.33 2019/08/05 19:06:49 adam Exp $ +# $NetBSD: Makefile.common,v 1.34 2019/08/26 14:56:21 adam Exp $ # used by lang/clang/Makefile # used by lang/clang-static-analyzer/Makefile # used by lang/clang-tools-extra/Makefile @@ -29,6 +29,8 @@ CMAKE_ARGS+= -DCMAKE_CXX_COMPILER=${CXX:Q} # XXX can't disable static-analyzer without also disabling ARCMT CMAKE_ARGS+= -DCLANG_ENABLE_ARCMT=OFF +.include "../../mk/compiler.mk" + CMAKE_ARGS.Darwin+= -DCMAKE_LIBTOOL=/usr/bin/libtool .if defined(OSX_SDK_PATH) CMAKE_ARGS.Darwin+= -DDEFAULT_SYSROOT=${OSX_SDK_PATH:Q} @@ -70,8 +72,6 @@ REPLACE_PYTHON+= utils/hmaptool/hmaptool REPLACE_PYTHON+= utils/token-delta.py REPLACE_PYTHON+= www/builtins.py -.include "../../mk/compiler.mk" - .if ${OPSYS} == "NetBSD" && !empty(PKGSRC_COMPILER:Mclang) # command to check if clang is using libc++ or libstdc++ LIBCPP_CHECK_SH= printf "\#include <ciso646>\n\#ifdef _LIBCPP_VERSION\nYES\n\#endif" | ${CLANGBASE}/bin/clang++ -x c++ -E - 2>&1 | grep YES || true |