diff options
author | Michal Gorny <mgorny@gentoo.org> | 2019-03-06 14:03:18 +0000 |
---|---|---|
committer | Michal Gorny <mgorny@gentoo.org> | 2019-03-06 14:03:18 +0000 |
commit | a2cc148f9fee10ff749a101975a23703e5460d0b (patch) | |
tree | b3dbee830d16a9ea4ef9dcb18871b8db4bf684e7 /lldb/packages/Python | |
parent | f2eb8caa3fbb4338c061782d9b414fcadd8f9e40 (diff) | |
download | bcm5719-llvm-a2cc148f9fee10ff749a101975a23703e5460d0b.tar.gz bcm5719-llvm-a2cc148f9fee10ff749a101975a23703e5460d0b.zip |
[lldb] [test] Pass appropriate -L&-Wl,-rpath for libc++ on NetBSD
Pass appropriate -L and -Wl,-rpath flags pointing out to the LLVM
library directory on NetBSD. This is necessary since clang on NetBSD
requires libc++ but it is not installed as part of the system
by default. For the purpose of running buildbot, we want LLDB to use
just-built libc++.
Differential Revision: https://reviews.llvm.org/D58630
llvm-svn: 355502
Diffstat (limited to 'lldb/packages/Python')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/make/Makefile.rules | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules index 378f5af3c5f..bee67ed0341 100644 --- a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules +++ b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules @@ -297,6 +297,11 @@ CXXFLAGS += -std=c++11 $(CFLAGS) $(ARCH_CXXFLAGS) LD = $(CC) LDFLAGS ?= $(CFLAGS) LDFLAGS += $(LD_EXTRAS) $(ARCH_LDFLAGS) +ifneq (,$(LLVM_LIBS_DIR)) + ifeq ($(OS),NetBSD) + LDFLAGS += -L$(LLVM_LIBS_DIR) -Wl,-rpath,$(LLVM_LIBS_DIR) + endif +endif ifeq (,$(filter $(OS), Windows_NT Android Darwin)) ifneq (,$(filter YES,$(ENABLE_THREADS))) LDFLAGS += -pthread |