mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-09 19:03:43 +01:00
Build libunwind-coredump using libtool
So that it builds shared/pic library that can be linked with other libraries. Signed-off-by: Martin Milata <mmilata@redhat.com>
This commit is contained in:
parent
0f6c8313b7
commit
de28c51e63
2 changed files with 9 additions and 6 deletions
|
@ -1,5 +1,6 @@
|
||||||
SOVERSION=8:0:0 # See comments at end of file.
|
SOVERSION=8:0:0 # See comments at end of file.
|
||||||
SETJMP_SO_VERSION=0:0:0
|
SETJMP_SO_VERSION=0:0:0
|
||||||
|
COREDUMP_SO_VERSION=0:0:0
|
||||||
#
|
#
|
||||||
# Don't link with start-files since we don't use any constructors/destructors:
|
# Don't link with start-files since we don't use any constructors/destructors:
|
||||||
#
|
#
|
||||||
|
@ -8,8 +9,8 @@ COMMON_SO_LDFLAGS = -XCClinker -nostartfiles
|
||||||
lib_LIBRARIES =
|
lib_LIBRARIES =
|
||||||
lib_LTLIBRARIES =
|
lib_LTLIBRARIES =
|
||||||
if !REMOTE_ONLY
|
if !REMOTE_ONLY
|
||||||
lib_LIBRARIES += libunwind-ptrace.a libunwind-coredump.a
|
lib_LIBRARIES += libunwind-ptrace.a
|
||||||
lib_LTLIBRARIES += libunwind.la
|
lib_LTLIBRARIES += libunwind.la libunwind-coredump.la
|
||||||
endif
|
endif
|
||||||
|
|
||||||
noinst_HEADERS =
|
noinst_HEADERS =
|
||||||
|
@ -27,7 +28,7 @@ libunwind_ptrace_a_SOURCES = \
|
||||||
noinst_HEADERS += ptrace/_UPT_internal.h
|
noinst_HEADERS += ptrace/_UPT_internal.h
|
||||||
|
|
||||||
### libunwind-coredump:
|
### libunwind-coredump:
|
||||||
libunwind_coredump_a_SOURCES = \
|
libunwind_coredump_la_SOURCES = \
|
||||||
coredump/_UCD_accessors.c \
|
coredump/_UCD_accessors.c \
|
||||||
coredump/_UCD_create.c \
|
coredump/_UCD_create.c \
|
||||||
coredump/_UCD_destroy.c \
|
coredump/_UCD_destroy.c \
|
||||||
|
@ -41,6 +42,8 @@ libunwind_coredump_a_SOURCES = \
|
||||||
coredump/_UPT_get_dyn_info_list_addr.c \
|
coredump/_UPT_get_dyn_info_list_addr.c \
|
||||||
coredump/_UPT_put_unwind_info.c \
|
coredump/_UPT_put_unwind_info.c \
|
||||||
coredump/_UPT_resume.c
|
coredump/_UPT_resume.c
|
||||||
|
libunwind_coredump_la_LDFLAGS = $(COMMON_SO_LDFLAGS) \
|
||||||
|
-version-info $(COREDUMP_SO_VERSION)
|
||||||
noinst_HEADERS += coredump/_UCD_internal.h
|
noinst_HEADERS += coredump/_UCD_internal.h
|
||||||
|
|
||||||
### libunwind-setjmp:
|
### libunwind-setjmp:
|
||||||
|
@ -365,7 +368,7 @@ if OS_LINUX
|
||||||
libunwind_la_SOURCES_x86_os_local = x86/Los-linux.c
|
libunwind_la_SOURCES_x86_os_local = x86/Los-linux.c
|
||||||
libunwind_la_SOURCES_x86_64_os = x86_64/Gos-linux.c
|
libunwind_la_SOURCES_x86_64_os = x86_64/Gos-linux.c
|
||||||
libunwind_la_SOURCES_x86_64_os_local = x86_64/Los-linux.c
|
libunwind_la_SOURCES_x86_64_os_local = x86_64/Los-linux.c
|
||||||
libunwind_coredump_a_SOURCES += coredump/_UCD_access_reg_linux.c
|
libunwind_coredump_la_SOURCES += coredump/_UCD_access_reg_linux.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if OS_HPUX
|
if OS_HPUX
|
||||||
|
@ -381,7 +384,7 @@ if OS_FREEBSD
|
||||||
libunwind_la_SOURCES_x86_os_local = x86/Los-freebsd.c
|
libunwind_la_SOURCES_x86_os_local = x86/Los-freebsd.c
|
||||||
libunwind_la_SOURCES_x86_64_os = x86_64/Gos-freebsd.c
|
libunwind_la_SOURCES_x86_64_os = x86_64/Gos-freebsd.c
|
||||||
libunwind_la_SOURCES_x86_64_os_local = x86_64/Los-freebsd.c
|
libunwind_la_SOURCES_x86_64_os_local = x86_64/Los-freebsd.c
|
||||||
libunwind_coredump_a_SOURCES += coredump/_UCD_access_reg_freebsd.c
|
libunwind_coredump_la_SOURCES += coredump/_UCD_access_reg_freebsd.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if ARCH_ARM
|
if ARCH_ARM
|
||||||
|
|
|
@ -121,7 +121,7 @@ crasher: crasher.c
|
||||||
|
|
||||||
LIBUNWIND = $(top_builddir)/src/libunwind-$(arch).la
|
LIBUNWIND = $(top_builddir)/src/libunwind-$(arch).la
|
||||||
LIBUNWIND_ptrace = $(top_builddir)/src/libunwind-ptrace.a
|
LIBUNWIND_ptrace = $(top_builddir)/src/libunwind-ptrace.a
|
||||||
LIBUNWIND_coredump = $(top_builddir)/src/libunwind-coredump.a
|
LIBUNWIND_coredump = $(top_builddir)/src/libunwind-coredump.la
|
||||||
|
|
||||||
if USE_ELF32
|
if USE_ELF32
|
||||||
LIBUNWIND_ELF = $(top_builddir)/src/libunwind-elf32.la
|
LIBUNWIND_ELF = $(top_builddir)/src/libunwind-elf32.la
|
||||||
|
|
Loading…
Reference in a new issue