libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [PATCH 4/4] No libunwind-generic.so if configured with


From: Joel Brobecker
Subject: [Libunwind-devel] [PATCH 4/4] No libunwind-generic.so if configured with --disable-shared
Date: Wed, 15 Jun 2011 20:07:10 -0400

Installing a libunwind that was configured with --disable-shared
results in a broken libunwind-generic.so link. This patch avoids
this broken link.

---
 src/Makefile.am |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index e889235..f0e9a05 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -326,12 +326,16 @@ install-exec-hook:
 else
 #
 # This is not ideal, but I know of no other way to install an
-# alias for a library.
+# alias for a library.  For the shared version, we have to do
+# a file check before creating the link, because it isn't going
+# to be there if the user configured with --disable-shared.
 #
 install-exec-hook:
        $(LN_S) -f libunwind-$(arch).a  $(DESTDIR)$(libdir)/libunwind-generic.a
-       $(LN_S) -f libunwind-$(arch).so \
-               $(DESTDIR)$(libdir)/libunwind-generic.so
+       if test -f $(DESTDIR)$(libdir)/libunwind-generic.so; then \
+           $(LN_S) -f libunwind-$(arch).so \
+               $(DESTDIR)$(libdir)/libunwind-generic.so; \
+       fi
 endif
 
 if OS_LINUX
-- 
1.7.0.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]