[ofa-general] [PATCH] opensm/Makefile: add libopensm -> opensm dependency

Sasha Khapyorsky sashak at voltaire.com
Mon Nov 12 15:18:20 PST 2007


This makes opensm program be explicitly dependent from libopensm.
Otherwise opensm build can fail on multiprocessor machines when option
-jN (where N > 1) is used with make. This is reported in Bug#774
(https://bugs.openfabrics.org/show_bug.cgi?id=774).

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 opensm/opensm/Makefile.am |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/opensm/opensm/Makefile.am b/opensm/opensm/Makefile.am
index 2895d18..146bc04 100644
--- a/opensm/opensm/Makefile.am
+++ b/opensm/opensm/Makefile.am
@@ -29,6 +29,7 @@ libopensm_la_LDFLAGS = -version-info $(opensm_api_version) \
 libopensm_la_DEPENDENCIES = $(srcdir)/libopensm.map
 
 sbin_PROGRAMS = opensm
+opensm_DEPENDENCIES = libopensm.la
 opensm_SOURCES = main.c osm_console.c osm_db_files.c \
 		 osm_db_pack.c osm_drop_mgr.c osm_fwd_tbl.c \
 		 osm_inform.c osm_lid_mgr.c osm_lin_fwd_rcv.c \
-- 
1.5.3.4.206.g58ba4




More information about the general mailing list