[ofa-general] [PATCH v2] opensm/libvendor/Makefile.am: create symbolic link to osmvendor library

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Wed Aug 13 08:13:27 PDT 2008


Hi Sasha,

Creating a symbolic link to the vendor library that denotes
which type of vendor it is. This is needed for ibutils/ibis.
This install-exec-hook (among many others) was removed
by the following patch:
http://lists.openfabrics.org/pipermail/general/2008-July/052742.html

[V2] The previous version was creating a link to a
     full path file name. This one creates local link,
     to relative path file name.

Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
 opensm/libvendor/Makefile.am |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/opensm/libvendor/Makefile.am b/opensm/libvendor/Makefile.am
index f72dbbe..db1b319 100644
--- a/opensm/libvendor/Makefile.am
+++ b/opensm/libvendor/Makefile.am
@@ -88,3 +88,9 @@ libosmvendorinclude_HEADERS = $(HDRS)

 # headers are distributed as part of the include dir
 EXTRA_DIST = $(srcdir)/libosmvendor.map $(srcdir)/libosmvendor.ver
+
+# Create a link to the installed vendor lib to
+# mark the type of the vendor library
+install-exec-hook:
+	lname=`\ls -l $(DESTDIR)/$(libdir)/libosmvendor.so | awk '{print $$NF}'`; \
+	ln -sf $$lname $(DESTDIR)/$(libdir)/libosmvendor_$(with_osmv).so;
-- 
1.5.1.4





More information about the general mailing list