I do something like:

    CFLAGS=-g ./configure ...

to build a debug tree from openib svn.

Some places override this CFLAGS setting, though, applying
optimization even though I explicitly do not want it.  This patch
fixes that.  These apply to OSM below gen2/trunk/src/userspace/.

Signed-off-by: Pete Wyckoff <[EMAIL PROTECTED]>

Index: management/osm/libvendor/Makefile.am
===================================================================
--- management/osm/libvendor/Makefile.am        (revision 5098)
+++ management/osm/libvendor/Makefile.am        (working copy)
@@ -3,8 +3,6 @@
 
 if DEBUG
 DBGFLAGS = -ggdb -D_DEBUG_
-else
-DBGFLAGS = -g -O2
 endif
 
 INCLUDES = $(OSMV_INCLUDES)
Index: management/osm/complib/Makefile.am
===================================================================
--- management/osm/complib/Makefile.am  (revision 5098)
+++ management/osm/complib/Makefile.am  (working copy)
@@ -5,8 +5,6 @@
 
 if DEBUG
 DBGFLAGS = -ggdb -D_DEBUG_
-else
-DBGFLAGS = -g -O2
 endif
 
 libosmcomp_la_CFLAGS = -Wall $(DBGFLAGS) -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1
Index: management/osm/opensm/Makefile.am
===================================================================
--- management/osm/opensm/Makefile.am   (revision 5098)
+++ management/osm/opensm/Makefile.am   (working copy)
@@ -5,8 +5,6 @@
 
 if DEBUG
 DBGFLAGS = -ggdb -D_DEBUG_
-else
-DBGFLAGS = -g -O2
 endif
 
 libopensm_la_CFLAGS = -Wall $(OSMV_CFLAGS) -DVENDOR_RMPP_SUPPORT $(DBGFLAGS) 
-D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to