From e43482b626b5f8e8fe85aad0c91fd8e637f67cd4 Mon Sep 17 00:00:00 2001 From: Tamas Berghammer Date: Fri, 11 Dec 2015 16:24:14 +0000 Subject: Create test for llvm.org/pr25806 LLDB don't detect the loading of a shared object file linked against the main executable before the static initializers are executed for the given module. Because of this it is not possible to get breakpoint hits in these static initializers and to display proper debug info in case of a crash in these codes. llvm-svn: 255342 --- lldb/packages/Python/lldbsuite/test/functionalities/load_unload/c.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/load_unload/c.mk') diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/c.mk b/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/c.mk index ebb5ce15787..5b5691efeef 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/c.mk +++ b/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/c.mk @@ -3,7 +3,9 @@ LEVEL := ../../make LIB_PREFIX := loadunload_ DYLIB_NAME := $(LIB_PREFIX)c -DYLIB_C_SOURCES := c.c +DYLIB_CXX_SOURCES := c.cpp DYLIB_ONLY := YES +CXXFLAGS += -fPIC + include $(LEVEL)/Makefile.rules -- cgit v1.2.3