[openib-general] respect CFLAGS in OSM
Pete Wyckoff
pw at osc.edu
Thu Jan 19 13:50:25 PST 2006
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 <pw at osc.edu>
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
More information about the general
mailing list