This change seems to be from Jan 2004.
http://git.savannah.gnu.org/gitweb/?p=libunwind.git;a=commitdiff;h=165666394199966e7fbdd1a68bf5aa032a79b7f0
I'm not aware of any reason why libunwind-ptrace shouldn't be a .so.
Please try the attached patch (and rerun automake).
-Arun
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -10,13 +10,13 @@ LIBRARIES_cdep =
lib_LTLIBRARIES_cdep =
lib_LTLIBRARIES_cdep_setjmp =
else
-LIBRARIES_cdep = libunwind-ptrace.a
lib_LTLIBRARIES_cdep = libunwind.la
+lib_LTLIBRARIES_cdep += libunwind-ptrace.la
lib_LTLIBRARIES_cdep_setjmp = libunwind-setjmp.la
endif
### libunwind-ptrace:
-libunwind_ptrace_a_SOURCES = \
+libunwind_ptrace_la_SOURCES = \
ptrace/_UPT_elf.c \
ptrace/_UPT_internal.h \
ptrace/_UPT_accessors.c ptrace/_UPT_access_fpreg.c \
2009/10/7 Jorge Lucángeli Obes <[email protected]>:
> Hi all,
>
> I've compiled libunwind-0.99 on an 64-bit Ubuntu 9.04 system, and
> libunwind-ptrace is compiled only as a static library. Is this
> expected? Is there a reason why that's the only part of the library
> not also compiled as a shared library? I want to build a simple Python
> wrapper over code that uses libunwind on a ptrace'd program, and the
> Python extension needs to be a shared object, and ld complains
> (reasonably) that libunwind-ptrace.a cannot be linked into a shared
> object because it was not compiled as PIC. Any ideas? Thanks in
> advance for any replies, please CC me as I'm not subscribed to the
> list.
>
> Cheers,
> Jorge
>
>
> _______________________________________________
> Libunwind-devel mailing list
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/libunwind-devel
>
_______________________________________________
Libunwind-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/libunwind-devel