[ofa-general] [PATCH v2] ibutils/ibis: link ibis dynamically

Sasha Khapyorsky sashak at voltaire.com
Sun Feb 15 00:25:40 PST 2009


Otherwise when running against ibsim with libumad2sim.so preloaded it
has two instances (static and dynamic resulted by libumad2sim.so
preloading) of libibumad with different internal initializations, etc.,
which makes it impossible to use ibutils in ibsim environment.

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

The difference against previous version of the patch is noinst_LIBRARIES
use, so libibiscom will not be installed.

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

diff --git a/ibis/src/Makefile.am b/ibis/src/Makefile.am
index e0b512f..cfa22f6 100644
--- a/ibis/src/Makefile.am
+++ b/ibis/src/Makefile.am
@@ -54,9 +54,10 @@ AM_CXXFLAGS = $(TCL_CPPFLAGS) $(OSM_CFLAGS) $(DBG) -fno-strict-aliasing -fPIC  -
 LIB_VER_TRIPLET="1:0:0"
 LIB_FILE_TRIPLET=1.0.0
 
-lib_LTLIBRARIES = libibiscom.la libibis.la
+lib_LTLIBRARIES = libibis.la
+noinst_LIBRARIES = libibiscom.a
 
-libibiscom_la_SOURCES = ibbbm.c ibcr.c	ibis.c ibis_gsi_mad_ctrl.c \
+libibiscom_a_SOURCES = ibbbm.c ibcr.c	ibis.c ibis_gsi_mad_ctrl.c \
 	ibpm.c ibsac.c ibsm.c ibvs.c ibcc.c
 
 # client library to be used by IBIS TCL package:
@@ -70,11 +71,9 @@ bin_PROGRAMS = ibis
 
 # this is used for the libraries link
 LDADD = $(OSM_LDFLAGS)
-# AM_LDFLAGS = -static
 
 ibis_SOURCES = ibissh_wrap.cpp
 
-ibis_LDFLAGS = -static
 # note the order of the libraries does matter as we static link
 ibis_LDADD = -libiscom $(OSM_LDFLAGS) $(TCL_LIBS)
 
-- 
1.6.1.2.319.gbd9e




More information about the general mailing list