Commit 7d43108f9c41a2ccbe0adc8713523ad60469e026 ("No
libunwind-generic.so if configured with --disable-shared") introduced a
check to avoid creating a broken libunwind-generic.so link, but the
result of the commit is that libunwind-generic.so is never created (at
least when installing to a clean directory).

We need to check for the installed libunwind-$(arch).so file,
libunwind-generic.so will be the symbolic link name.
---
 src/Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 26b1895..0c85450 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -332,7 +332,7 @@ else
 #
 install-exec-hook:
        $(LN_S) -f libunwind-$(arch).a  $(DESTDIR)$(libdir)/libunwind-generic.a
-       if test -f $(DESTDIR)$(libdir)/libunwind-generic.so; then \
+       if test -f $(DESTDIR)$(libdir)/libunwind-$(arch).so; then \
            $(LN_S) -f libunwind-$(arch).so \
                $(DESTDIR)$(libdir)/libunwind-generic.so; \
        fi
-- 
1.7.2.5


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

Reply via email to