1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-05-23 05:15:17 +02:00

Fix libunwind-generic.so symbolic link never being created in make install

Commit 7d43108f9c ("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.
This commit is contained in:
Tommi Rantala 2012-01-23 09:59:54 +02:00 committed by Arun Sharma
parent 52ca68c770
commit 458c661be7

View file

@ -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