diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-08-02 20:52:42 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-08-02 20:52:42 +0000 |
commit | 8f3d8384bed762d95552010482e23ea13154dcd9 (patch) | |
tree | 0e1fd20b5451e3163a3255cf3c33c012cec12d50 /lldb/lib | |
parent | 7b15b2e828bbaa2ec693341cff60a434a8546fe2 (diff) | |
download | bcm5719-llvm-8f3d8384bed762d95552010482e23ea13154dcd9.tar.gz bcm5719-llvm-8f3d8384bed762d95552010482e23ea13154dcd9.zip |
Patch by David Forsythe to build lldb on FreeBSD!
I did not take the patch for ClangExpressionParser.cpp since there was a
recent change by Peter for the same line. Feel free to disagree. :-)
Reference:
----------------------------------------------------------------------
r136580 | pcc | 2011-07-30 15:42:24 -0700 (Sat, 30 Jul 2011) | 3 lines
Add reloc arg to standard JIT createJIT()
Fixes non-__APPLE__ build. Patch by Matt Johnson!
----------------------------------------------------------------------
Also, I ignore the part of the patch to remove the RegisterContextDarwin*.h/.cpp.
llvm-svn: 136720
Diffstat (limited to 'lldb/lib')
-rw-r--r-- | lldb/lib/Makefile | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/lldb/lib/Makefile b/lldb/lib/Makefile index a13114b20fe..98605407caf 100644 --- a/lldb/lib/Makefile +++ b/lldb/lib/Makefile @@ -73,7 +73,8 @@ ifeq ($(HOST_OS),Darwin) lldbPluginObjectContainerUniversalMachO.a \ lldbPluginObjectFileMachO.a \ lldbPluginSymbolVendorMacOSX.a \ - lldbPluginPlatformMacOSX.a + lldbPluginPlatformMacOSX.a \ + lldbPluginProcessDarwin endif ifeq ($(HOST_OS),Linux) @@ -83,6 +84,11 @@ ifeq ($(HOST_OS),Linux) lldbHostLinux.a endif +ifeq ($(HOST_OS),FreeBSD) + USEDLIBS += lldbHostFreeBSD.a \ + lldbPluginPlatformFreeBSD.a +endif + include $(LEVEL)/Makefile.common ifeq ($(HOST_OS),Darwin) @@ -108,7 +114,7 @@ ifeq ($(HOST_OS),Darwin) endif endif -ifeq ($(HOST_OS), Linux) +ifeq ($(HOST_OS),Linux) # Include everything from the .a's into the shared library. ProjLibsOptions := -Wl,--whole-archive $(ProjLibsOptions) \ -Wl,--no-whole-archive @@ -117,3 +123,13 @@ ifeq ($(HOST_OS), Linux) # Link in python LD.Flags += $(PYTHON_BUILD_FLAGS) -lrt endif + +ifeq ($(HOST_OS),FreeBSD) + # Include everything from the .a's into the shared library. + ProjLibsOptions := -Wl,--whole-archive $(ProjLibsOptions) \ + -Wl,--no-whole-archive + # Don't allow unresolved symbols. + LLVMLibsOptions += -Wl,--no-undefined + # Link in python + LD.Flags += $(PYTHON_BUILD_FLAGS) -lrt -L/usr/local/lib -lexecinfo +endif |