summaryrefslogtreecommitdiffstats
path: root/clang/tools
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2013-07-01 08:13:34 +0000
committerSylvestre Ledru <sylvestre@debian.org>2013-07-01 08:13:34 +0000
commit103b51c72ead880e612d436ba59dbf678cc2aa16 (patch)
treedec5d755c14fd7664fa78ae6a366880666a920b5 /clang/tools
parent93a491bbf4ea9cfcde71d9d78e92488254878667 (diff)
downloadbcm5719-llvm-103b51c72ead880e612d436ba59dbf678cc2aa16.tar.gz
bcm5719-llvm-103b51c72ead880e612d436ba59dbf678cc2aa16.zip
Following the modification introduced in llvm by commit 185311
The build system is currently miss-identifying GNU/kFreeBSD as FreeBSD. This kind of simplification is sometimes useful, but in general it's not correct. As GNU/kFreeBSD is an hybrid system, for kernel-related issues we want to match the build definitions used for FreeBSD, whereas for userland-related issues we want to match the definitions used for other systems with Glibc. The current modification adjusts the build system so that they can be distinguished, and explicitly adds GNU/kFreeBSD to the build checks in which it belongs. Fixes bug #16445. Patch by Robert Millan in the context of Debian. llvm-svn: 185312
Diffstat (limited to 'clang/tools')
-rw-r--r--clang/tools/libclang/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/tools/libclang/Makefile b/clang/tools/libclang/Makefile
index 0fee2c6cf97..b131f0467a0 100644
--- a/clang/tools/libclang/Makefile
+++ b/clang/tools/libclang/Makefile
@@ -24,12 +24,12 @@ USEDLIBS = clangFrontend.a clangDriver.a \
clangARCMigrate.a clangRewriteFrontend.a clangRewriteCore.a \
clangAnalysis.a clangEdit.a \
clangAST.a clangLex.a clangBasic.a \
- clangFormat.a
+ clangFormat.a
include $(CLANG_LEVEL)/Makefile
# Add soname to the library.
-ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU))
+ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU GNU/kFreeBSD))
LDFLAGS += -Wl,-soname,lib$(LIBRARYNAME)$(SHLIBEXT)
endif
OpenPOWER on IntegriCloud