summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-shlib
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2013-07-01 08:07:52 +0000
committerSylvestre Ledru <sylvestre@debian.org>2013-07-01 08:07:52 +0000
commit93a491bbf4ea9cfcde71d9d78e92488254878667 (patch)
treec9f8d6530c5bd2c96e14ad41419d1760e560a744 /llvm/tools/llvm-shlib
parent9319db2ce94748dbf5bf76ed7c4997254bab3203 (diff)
downloadbcm5719-llvm-93a491bbf4ea9cfcde71d9d78e92488254878667.tar.gz
bcm5719-llvm-93a491bbf4ea9cfcde71d9d78e92488254878667.zip
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 #16444. Patch by Robert Millan in the context of Debian. llvm-svn: 185311
Diffstat (limited to 'llvm/tools/llvm-shlib')
-rw-r--r--llvm/tools/llvm-shlib/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/llvm-shlib/Makefile b/llvm/tools/llvm-shlib/Makefile
index 8697bbfb7a9..9498a27d77b 100644
--- a/llvm/tools/llvm-shlib/Makefile
+++ b/llvm/tools/llvm-shlib/Makefile
@@ -62,18 +62,18 @@ ifeq ($(HOST_OS),Darwin)
endif
endif
-ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD OpenBSD GNU Bitrig))
+ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU/kFreeBSD OpenBSD GNU Bitrig))
# Include everything from the .a's into the shared library.
LLVMLibsOptions := -Wl,--whole-archive $(LLVMLibsOptions) \
-Wl,--no-whole-archive
endif
-ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU))
+ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU/kFreeBSD GNU))
# Add soname to the library.
LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT)
endif
-ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux GNU))
+ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux GNU GNU/kFreeBSD))
# Don't allow unresolved symbols.
LLVMLibsOptions += -Wl,--no-undefined
endif
OpenPOWER on IntegriCloud