Add C++ include path for NetBSD's /usr/include/g++, addresses

PR pkg/43237 by NAKAJIMA Yoshihiro.
This isn't too useful yet due to an incompatibility (apparently
a bug in gcc-4.1) which will be fixed soon.
bump PKGREVISION
This commit is contained in:
drochner 2010-05-04 16:52:16 +00:00
parent 8ed287dc93
commit 432d07a6b8
3 changed files with 18 additions and 2 deletions

View file

@ -1,7 +1,8 @@
# $NetBSD: Makefile,v 1.4 2010/04/27 15:12:08 drochner Exp $
# $NetBSD: Makefile,v 1.5 2010/05/04 16:52:16 drochner Exp $
#
DISTNAME= clang-2.7
PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= http://llvm.org/releases/${PKGVERSION_NOREV}/
DISTFILES= llvm-2.7.tgz clang-2.7.tgz

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.3 2010/04/27 15:12:08 drochner Exp $
$NetBSD: distinfo,v 1.4 2010/05/04 16:52:16 drochner Exp $
SHA1 (clang-2.7.tgz) = 4d8326bfe2308a7355a5e4ca2eb172bffd761e1e
RMD160 (clang-2.7.tgz) = 177fdcf59be4a60c37cf0dfb058535c9cdbbad4e
@ -9,3 +9,4 @@ Size (llvm-2.7.tgz) = 8374297 bytes
SHA1 (patch-ac) = 3b8b72035d391456c58ffb787284b1fb873b6732
SHA1 (patch-ad) = b90fa4fa75ef1f7c8cb9475798bf7f8e53e6baa9
SHA1 (patch-ae) = 7ace4a3835f5998fbd9582f531237977dc948849
SHA1 (patch-af) = 440f939c1f3500e6a96b95f4ba63051c1e3f5f10

View file

@ -0,0 +1,14 @@
$NetBSD: patch-af,v 1.1 2010/05/04 16:52:16 drochner Exp $
--- tools/clang/lib/Frontend/InitHeaderSearch.cpp.orig 2010-05-04 10:43:04.000000000 +0000
+++ tools/clang/lib/Frontend/InitHeaderSearch.cpp
@@ -637,6 +637,9 @@ void InitHeaderSearch::AddDefaultCPlusPl
case llvm::Triple::FreeBSD:
AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.2", "", "", "", triple);
break;
+ case llvm::Triple::NetBSD:
+ AddGnuCPlusPlusIncludePaths("/usr/include/g++", "", "", "", triple);
+ break;
case llvm::Triple::Solaris:
// Solaris - Fall though..
case llvm::Triple::AuroraUX: