Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=88a... Commit: 88a470605770e34515c82ba65cea5dc269b4664f Parent: b9482faa728fe5b995b2352fb7c23c1e09cada58 Author: Fabio M. Di Nitto fdinitto@redhat.com AuthorDate: Tue May 15 08:52:09 2012 +0200 Committer: Fabio M. Di Nitto fdinitto@redhat.com CommitterDate: Tue May 15 08:52:09 2012 +0200
build: fix fortify build warning
In file included from /usr/include/sys/types.h:26:0, from dlm_daemon.h:13, from plock.c:9: /usr/include/features.h:314:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
it is still a good idea to build with -O2 for performance.
Signed-off-by: Fabio M. Di Nitto fdinitto@redhat.com --- dlm_controld/Makefile | 2 +- dlm_tool/Makefile | 2 +- libdlm/Makefile | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlm_controld/Makefile b/dlm_controld/Makefile index 2d46c35..413bf89 100644 --- a/dlm_controld/Makefile +++ b/dlm_controld/Makefile @@ -29,7 +29,7 @@ BIN_SOURCE = action.c \ rbtree.c LIB_SOURCE = lib.c
-BIN_CFLAGS += -D_GNU_SOURCE -g \ +BIN_CFLAGS += -D_GNU_SOURCE -O2 -g \ -Wall \ -Wformat \ -Wformat-security \ diff --git a/dlm_tool/Makefile b/dlm_tool/Makefile index 0f142ff..17e16a6 100644 --- a/dlm_tool/Makefile +++ b/dlm_tool/Makefile @@ -8,7 +8,7 @@ MAN_TARGET = dlm_tool.8
BIN_SOURCE = main.c
-BIN_CFLAGS += -D_GNU_SOURCE -g \ +BIN_CFLAGS += -D_GNU_SOURCE -O2 -g \ -Wall \ -Wformat \ -Wformat-security \ diff --git a/libdlm/Makefile b/libdlm/Makefile index 5fa6195..01b2036 100644 --- a/libdlm/Makefile +++ b/libdlm/Makefile @@ -55,7 +55,7 @@ UDEV_TARGET = 51-dlm.rules
SOURCE = libdlm.c
-CFLAGS += -D_GNU_SOURCE -g \ +CFLAGS += -D_GNU_SOURCE -O2 -g \ -Wall \ -Wformat \ -Wformat-security \ @@ -75,7 +75,7 @@ CFLAGS += -D_GNU_SOURCE -g \ -fexceptions \ -fasynchronous-unwind-tables \ -fdiagnostics-show-option \ - -fPIC \ + -fPIC
LIB_CFLAGS += $(CFLAGS) -D_REENTRANT LLT_CFLAGS += $(CFLAGS)
cluster-commits@lists.fedorahosted.org