ports/lang/clang35/files/patch-tools_clang_lib_Frontend_InitHeaderSearch.cpp
Brooks Davis e88f73c0a6 Add ports of LLVM and Clang 3.5rc1.
In the LLVM port the option to build cmake support files is disabled by
default because it fails to configure when built with gcc47.

The Clang port is marked broken if the compiler isn't clang due to link
errors when it is gcc47.
2014-08-01 22:38:44 +00:00

15 lines
811 B
C++

Look for the libc++ headers in base, and afterwards look if they might
have been installed in ports. This is only usefull on FreeBSD <= 9.x since
libc++ is shipped in 10 by default. No path to the library of libc++ is
provided. The port wanting to use libc++ need to provide its own LDFLAGS.
--- tools/clang/lib/Frontend/InitHeaderSearch.cpp.orig 2013-06-21 20:35:23.000000000 +0200
+++ tools/clang/lib/Frontend/InitHeaderSearch.cpp 2013-06-21 20:41:38.000000000 +0200
@@ -486,6 +486,7 @@ void InitHeaderSearch::AddDefaultInclude
AddPath("/usr/include/c++/v1/support/solaris", CXXSystem, false);
AddPath("/usr/include/c++/v1", CXXSystem, false);
+ AddPath("/usr/local/include/c++/v1", CXXSystem, false);
} else {
AddDefaultCPlusPlusIncludePaths(triple, HSOpts);
}