[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Libunwind-devel] libunwind-ptrace compiled only as a static librar
From: |
Arun Sharma |
Subject: |
Re: [Libunwind-devel] libunwind-ptrace compiled only as a static library |
Date: |
Thu, 8 Oct 2009 09:25:15 -0700 |
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 <address@hidden>:
> 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
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/libunwind-devel
>