[Cluster-devel] cluster/cman/cman_tool Makefile

pcaulfield at sourceware.org pcaulfield at sourceware.org
Mon Jul 3 12:13:55 UTC 2006


CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	pcaulfield at sourceware.org	2006-07-03 12:13:55

Modified files:
	cman/cman_tool : Makefile 

Log message:
	Don't force unwanted flags on people.
	honour DEBUG=y

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/cman_tool/Makefile.diff?cvsroot=cluster&r1=1.16&r2=1.17

--- cluster/cman/cman_tool/Makefile	2006/07/03 08:18:15	1.16
+++ cluster/cman/cman_tool/Makefile	2006/07/03 12:13:55	1.17
@@ -15,10 +15,14 @@
 
 include ${top_srcdir}/make/defines.mk
 
-CFLAGS+= -g -I${ccsincdir} -I${incdir} -I${top_srcdir}/config \
+CFLAGS+= -I${ccsincdir} -I${incdir} -I${top_srcdir}/config \
 	-DCMAN_RELEASE_NAME=\"${RELEASE}\" -I../lib
 
-CFLAGS+=-DDEBUG -fstack-protector -Wp,-D_FORTIFY_SOURCE=2
+ifeq ($(DEBUG),y)
+CFLAGS+= -O0 -g -DDEBUG
+else
+CFLAGS+= -O2
+endif
 
 TARGET=cman_tool
 




More information about the Cluster-devel mailing list