[Lldb-commits] [PATCH] D14531: Add more autotools/gmake NetBSD glue
Bruce Mitchener via lldb-commits
lldb-commits at lists.llvm.org
Sat Nov 14 18:02:47 PST 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL253153: Add more autotools/gmake NetBSD glue (authored by brucem).
Changed prior to commit:
http://reviews.llvm.org/D14531?vs=39789&id=40222#toc
Repository:
rL LLVM
http://reviews.llvm.org/D14531
Files:
lldb/trunk/lib/Makefile
lldb/trunk/tools/driver/Makefile
lldb/trunk/tools/lldb-mi/Makefile
lldb/trunk/tools/lldb-server/Makefile
Index: lldb/trunk/lib/Makefile
===================================================================
--- lldb/trunk/lib/Makefile
+++ lldb/trunk/lib/Makefile
@@ -204,3 +204,14 @@
LLVMLibsOptions += $(PYTHON_BUILD_FLAGS) -lrt -L/usr/local/lib -lexecinfo \
-ledit -lncurses -lpanel -lpthread
endif
+
+ifeq ($(HOST_OS),NetBSD)
+ # Include everything from the .a's into the shared library.
+ ProjLibsOptions := -Wl,--whole-archive $(ProjLibsOptions) \
+ -Wl,--no-whole-archive
+ # Allow unresolved symbols.
+ LLVMLibsOptions += -Wl,--allow-shlib-undefined
+ # Link in python
+ LLVMLibsOptions += $(PYTHON_BUILD_FLAGS) -lrt -L/usr/pkg/lib -lexecinfo \
+ -ledit -lcurses -lpthread -lkvm -Wl,-rpath,/usr/pkg/lib
+endif
Index: lldb/trunk/tools/lldb-server/Makefile
===================================================================
--- lldb/trunk/tools/lldb-server/Makefile
+++ lldb/trunk/tools/lldb-server/Makefile
@@ -20,6 +20,6 @@
LLVMLibsOptions += -Wl,-rpath, at loader_path/../lib/
endif
-ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU/kFreeBSD))
+ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU/kFreeBSD NetBSD))
LLVMLibsOptions += -Wl,-rpath,$(LibDir) -lpthread
endif
Index: lldb/trunk/tools/lldb-mi/Makefile
===================================================================
--- lldb/trunk/tools/lldb-mi/Makefile
+++ lldb/trunk/tools/lldb-mi/Makefile
@@ -22,12 +22,11 @@
LLVMLibsOptions += -Wl,-sectcreate -Wl,__TEXT -Wl,__info_plist -Wl,"$(PROJ_SRC_DIR)/lldb-Info.plist"
endif
-ifneq (,$(filter $(HOST_OS), Linux GNU/kFreeBSD))
+ifneq (,$(filter $(HOST_OS), Linux GNU/kFreeBSD NetBSD))
LLVMLibsOptions += -Wl,-rpath,$(LibDir) -lpthread
endif
ifeq ($(HOST_OS),FreeBSD)
CPP.Flags += -I/usr/include/edit #-v
LLVMLibsOptions += -Wl,-rpath,$(LibDir) -lpthread
endif
-
Index: lldb/trunk/tools/driver/Makefile
===================================================================
--- lldb/trunk/tools/driver/Makefile
+++ lldb/trunk/tools/driver/Makefile
@@ -26,12 +26,11 @@
LLVMLibsOptions += -Wl,-sectcreate -Wl,__TEXT -Wl,__info_plist -Wl,"$(PROJ_SRC_DIR)/lldb-Info.plist"
endif
-ifneq (,$(filter $(HOST_OS), Linux GNU/kFreeBSD))
+ifneq (,$(filter $(HOST_OS), Linux GNU/kFreeBSD NetBSD))
LLVMLibsOptions += -Wl,-rpath,$(LibDir)
endif
ifeq ($(HOST_OS),FreeBSD)
CPP.Flags += -I/usr/include/edit #-v
LLVMLibsOptions += -Wl,-rpath,$(LibDir)
endif
-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14531.40222.patch
Type: text/x-patch
Size: 2487 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20151115/2797f30f/attachment-0001.bin>
More information about the lldb-commits
mailing list