[ofa-general] [PATCH] opensm/*/Makefile.am: remove install-exec-hook

Sasha Khapyorsky sashak at voltaire.com
Wed Jul 9 15:42:03 PDT 2008


From: Doug Ledford <dledford at redhat.com>

Remove install-exec-hook where additional symbolic links to libraries
in form of lib*.so-<OpenSM_version> were created.

This patch was triggered by the Fedora package review process.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---

 opensm/complib/Makefile.am   |   10 ----------
 opensm/libvendor/Makefile.am |   11 -----------
 opensm/opensm/Makefile.am    |   10 ----------
 3 files changed, 0 insertions(+), 31 deletions(-)

diff --git a/opensm/complib/Makefile.am b/opensm/complib/Makefile.am
index 063bb8b..3f44dbb 100644
--- a/opensm/complib/Makefile.am
+++ b/opensm/complib/Makefile.am
@@ -79,13 +79,3 @@ libosmcompinclude_HEADERS = $(srcdir)/../include/complib/cl_atomic.h \
 
 # headers are distributed as part of the include dir
 EXTRA_DIST = $(srcdir)/libosmcomp.map $(srcdir)/libosmcomp.ver
-
-# as we can not use libtool -release since it actually changes the SONAME
-# to the full release name instead of keeping it to the original
-# name. What we can do it create a link to the installed file such
-# that it will mark it with an alias...
-# we find the new lib by traversing the links
-install-exec-hook:
-	if test -L $(DESTDIR)/$(libdir)/libosmcomp-$(VERSION).so; then rm $(DESTDIR)/$(libdir)/libosmcomp-$(VERSION).so; fi; \
-	lname=`\ls -l $(DESTDIR)/$(libdir)/libosmcomp.so | awk '{print $$NF}'`; \
-	ln -s $$lname $(DESTDIR)/$(libdir)/libosmcomp-$(VERSION).so
diff --git a/opensm/libvendor/Makefile.am b/opensm/libvendor/Makefile.am
index 9fbfc9b..f72dbbe 100644
--- a/opensm/libvendor/Makefile.am
+++ b/opensm/libvendor/Makefile.am
@@ -88,14 +88,3 @@ libosmvendorinclude_HEADERS = $(HDRS)
 
 # headers are distributed as part of the include dir
 EXTRA_DIST = $(srcdir)/libosmvendor.map $(srcdir)/libosmvendor.ver
-
-# as we can not use libtool -release since it actually changes the SONAME
-# to the full release name instead of keeping it to the original
-# name. What we can do it create a link to the installed file such
-# that it will mark it with an alias...
-# we find the new lib by traversing the links
-install-exec-hook:
-	if test -L $(DESTDIR)/$(libdir)/libosmvendor-$(VERSION).so; then rm $(DESTDIR)/$(libdir)/libosmvendor-$(VERSION).so; fi; \
-	lname=`\ls -l $(DESTDIR)/$(libdir)/libosmvendor.so | awk '{print $$NF}'`; \
-	ln -s $$lname $(DESTDIR)/$(libdir)/libosmvendor_$(with_osmv).so; \
-	ln -s $$lname $(DESTDIR)/$(libdir)/libosmvendor-$(VERSION).so
diff --git a/opensm/opensm/Makefile.am b/opensm/opensm/Makefile.am
index acd0b1d..80f5a01 100644
--- a/opensm/opensm/Makefile.am
+++ b/opensm/opensm/Makefile.am
@@ -119,16 +119,6 @@ EXTRA_DIST = $(srcdir)/libopensm.map $(srcdir)/libopensm.ver \
 	     $(srcdir)/ChangeLog \
 	     $(srcdir)/osm_qos_parser.y $(srcdir)/osm_qos_parser.l
 
-# as we can not use libtool -release since it actually changes the SONAME
-# to the full release name instead of keeping it to the original
-# name. What we can do it create a link to the installed file such
-# that it will mark it with an alias...
-# we find the new lib by traversing the links
-install-exec-hook:
-	if test -L $(DESTDIR)/$(libdir)/libopensm-$(VERSION).so; then rm $(DESTDIR)/$(libdir)/libopensm-$(VERSION).so; fi; \
-	lname=`\ls -l $(DESTDIR)/$(libdir)/libopensm.so | awk '{print $$NF}'`; \
-	ln -s $$lname $(DESTDIR)/$(libdir)/libopensm-$(VERSION).so
-
 # generate c and h files from the lex and yacc files
 dist-hook: $(srcdir)/osm_qos_parser_y.c $(srcdir)/osm_qos_parser_l.c
 
-- 
1.5.5.1.178.g1f811




More information about the general mailing list