summaryrefslogtreecommitdiff
path: root/tools/llvm-shlib
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2012-04-11 15:35:36 +0000
committerSylvestre Ledru <sylvestre@debian.org>2012-04-11 15:35:36 +0000
commit6fc30c26b7fa9e89c4e9ab99b7feab11389cc3f4 (patch)
treec9c0eb6e787e01990aabf2e15d388c01cf58769e /tools/llvm-shlib
parent611afc0620aed7827b5fdf9072a1827952b684b6 (diff)
downloadllvm-6fc30c26b7fa9e89c4e9ab99b7feab11389cc3f4.tar.gz
llvm-6fc30c26b7fa9e89c4e9ab99b7feab11389cc3f4.tar.bz2
llvm-6fc30c26b7fa9e89c4e9ab99b7feab11389cc3f4.tar.xz
Fix the build under Debian GNU/Hurd.
Thanks to Pino Toscano for the patch git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154500 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-shlib')
-rw-r--r--tools/llvm-shlib/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm-shlib/Makefile b/tools/llvm-shlib/Makefile
index 0035e3aebe..2d2e2c55b8 100644
--- a/tools/llvm-shlib/Makefile
+++ b/tools/llvm-shlib/Makefile
@@ -63,7 +63,7 @@ ifeq ($(HOST_OS),Darwin)
endif
endif
-ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD OpenBSD))
+ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD OpenBSD GNU))
# Include everything from the .a's into the shared library.
LLVMLibsOptions := -Wl,--whole-archive $(LLVMLibsOptions) \
-Wl,--no-whole-archive
@@ -71,7 +71,7 @@ ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD OpenBSD))
LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT)
endif
-ifeq ($(HOST_OS),Linux)
+ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux GNU))
# Don't allow unresolved symbols.
LLVMLibsOptions += -Wl,--no-undefined
endif