--- tools/lldb/scripts/Python/modules/readline/Makefile.orig 2014-02-26 15:05:48 UTC +++ tools/lldb/scripts/Python/modules/readline/Makefile @@ -64,6 +64,16 @@ ifeq ($(HOST_OS), $(filter $(HOST_OS), L LLVMLibsOptions += -Wl,--soname,$(LIBRARYNAME)$(SHLIBEXT) endif +ifeq ($(HOST_OS),BSDSUniX) + # 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 libedit + # LLVMLibsOptions += -L/usr/local/lib -ledit +endif + ifeq ($(HOST_OS),FreeBSD) # Include everything from the .a's into the shared library. ProjLibsOptions := -Wl,--whole-archive $(ProjLibsOptions) \