pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
clang-git: Add support for libstdc++ for GCC/NetBSD
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Thu Jan 21 16:32:02 2016 +0100
Changeset: a172d946570c2626d935595037690304565e0812
Modified Files:
clang-git/Makefile
Log Message:
clang-git: Add support for libstdc++ for GCC/NetBSD
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a172d946570c2626d935595037690304565e0812
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
clang-git/Makefile | 11 +++++++++++
1 file changed, 11 insertions(+)
diffs:
diff --git a/clang-git/Makefile b/clang-git/Makefile
index 4a0f6d7..8588b25 100644
--- a/clang-git/Makefile
+++ b/clang-git/Makefile
@@ -61,6 +61,17 @@ CMAKE_ARGS+= -DLLVM_TARGETS_TO_BUILD="X86"
CMAKE_ARG_PATH= ${WRKDIR}/clang
+.include "../../mk/compiler.mk"
+
+# patch NetBSD::GetCXXStdlibType
+.if ${OPSYS} == "NetBSD" && !empty(PKGSRC_COMPILER:Mgcc)
+SUBST_CLASSES+= libcxx
+SUBST_STAGE.libcxx= pre-configure
+SUBST_MESSAGE.libcxx= Patching toolchain to use libstdc++ as we're using GCC
+SUBST_FILES.libcxx= lib/Driver/ToolChains.cpp
+SUBST_SED.libcxx= -e 's,Major >= 7 || (Major == 6 && Minor == 99 && Micro >= 49) || Major == 0,false,'
+.endif
+
post-extract:
${RUN} mkdir -p ${WRKSRC}
Home |
Main Index |
Thread Index |
Old Index