summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2019-03-06 14:03:18 +0000
committerMichal Gorny <mgorny@gentoo.org>2019-03-06 14:03:18 +0000
commita2cc148f9fee10ff749a101975a23703e5460d0b (patch)
treeb3dbee830d16a9ea4ef9dcb18871b8db4bf684e7 /lldb/packages/Python
parentf2eb8caa3fbb4338c061782d9b414fcadd8f9e40 (diff)
downloadbcm5719-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.rules5
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
OpenPOWER on IntegriCloud