[ofa-general] [PATCH] infiniband-diags/libibnetdisc: fix DBGFLAGS variable

Ira Weiny weiny2 at llnl.gov
Thu Jul 30 18:40:54 PDT 2009


From: Ira Weiny <weiny2 at llnl.gov>
Date: Thu, 30 Jul 2009 18:40:12 -0700
Subject: [PATCH] infiniband-diags/libibnetdisc: fix DBGFLAGS variable


Signed-off-by: Ira Weiny <weiny2 at llnl.gov>
---
 infiniband-diags/libibnetdisc/Makefile.am |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/infiniband-diags/libibnetdisc/Makefile.am b/infiniband-diags/libibnetdisc/Makefile.am
index ddcf053..c10c972 100644
--- a/infiniband-diags/libibnetdisc/Makefile.am
+++ b/infiniband-diags/libibnetdisc/Makefile.am
@@ -10,7 +10,11 @@ if ENABLE_TEST_UTILS
 sbin_PROGRAMS += test/testleaks
 endif
 
-DBGFLAGS = -g
+if DEBUG
+DBGFLAGS = -ggdb -D_DEBUG_
+else
+DBGFLAGS =
+endif
 
 if HAVE_LD_VERSION_SCRIPT
 libibnetdisc_version_script = -Wl,--version-script=$(srcdir)/src/libibnetdisc.map
-- 
1.5.4.5




More information about the general mailing list