path: root/rpc/xdr
diff options
authorDeepak C Shetty <>2012-08-03 15:46:22 +0530
committerVijay Bellur <>2012-08-23 03:08:06 -0700
commit058a736f9e36238c284ca80e7ed5f62434655019 (patch)
tree9df41b60cb354a4e3cbe914a563a1b6806ef3cb1 /rpc/xdr
parent99a0fcb7a46c996518a93c3975805f53108a4eba (diff)
Add support for --enable-debug configure option
Currently default build adds -g -O2 to CFLAGS unconditionally and there is no way to control them from configure. This patch adds support for --enable-debug option to the configure cmdline. If yes, then only -g is added. If no, then -g -O2 is added. Build defaults to --enable-debug=no. Also fixes couple of's which had -g hardcoded. v2: Adds -O0 for debug=yes case. v3: Added bugID while submitting patch Change-Id: I7505619be6fc683de463a0bd44ba5500b0bedfe1 BUG: 851092 Signed-off-by: Deepak C Shetty <> Reviewed-on: Tested-by: Gluster Build System <> Tested-by: Deepak Shetty <> Reviewed-by: Vijay Bellur <>
Diffstat (limited to 'rpc/xdr')
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/xdr/src/ b/rpc/xdr/src/
index 7174815b8..d598cb495 100644
--- a/rpc/xdr/src/
+++ b/rpc/xdr/src/
@@ -1,6 +1,6 @@
-libgfxdr_la_CFLAGS = -fPIC -Wall -g -shared -nostartfiles $(GF_CFLAGS) $(GF_DARWIN_LIBGLUSTERFS_CFLAGS)
+libgfxdr_la_CFLAGS = -fPIC -Wall -shared -nostartfiles $(GF_CFLAGS) $(GF_DARWIN_LIBGLUSTERFS_CFLAGS)