On Mon, Sep 5, 2011 at 8:32 AM, Arun Sharma <[email protected]> wrote:
> On Mon, Sep 5, 2011 at 2:02 AM, Harald Servat <[email protected]> wrote:
>
>> /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld:
>> cannot find -lunwind-x86_64
>> collect2: ld returned 1 exit status
>> libtool: install: error: relink `libunwind-setjmp.la' with the above
>> command before installing it
>
> You're likely to get better support on automake related mailing lists
> on gnu.org. Based on the documentation here:

I was actually able to reproduce this. Looks like the order in which
libraries are specified in lib_LTLIBRARIES is important and it changed
between 0.99 and 1.0.

Could you please try this patch:

--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -9,7 +9,7 @@ lib_LIBRARIES =
 lib_LTLIBRARIES =
 if !REMOTE_ONLY
 lib_LIBRARIES += libunwind-ptrace.a
-lib_LTLIBRARIES += libunwind.la libunwind-setjmp.la
+lib_LTLIBRARIES += libunwind.la
 endif

 noinst_HEADERS =
@@ -477,6 +477,9 @@ endif # ARCH_HPPA
 endif # ARCH_IA64
 endif # ARCH_ARM

+if !REMOTE_ONLY
+lib_LTLIBRARIES += libunwind-setjmp.la
+endif
 #
 # Don't link with standard libraries, because those may mention
 # libunwind already.

autoreconf; configure; make install

works for me after the patch.

Thanks for the bug report.

 -Arun

_______________________________________________
Libunwind-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to