From: Benjamin Marzinski Date: Fri, 25 May 2012 04:57:42 +0000 (-0500) Subject: multipath: Build with standard rpm cflags X-Git-Tag: upstream/0.5.0~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1fce66911f4c15e3a9c09948f4c146d859bc1834;p=platform%2Fupstream%2Fmultipath-tools.git multipath: Build with standard rpm cflags This patch makes multipath build with the standard redhat rpm cflags, which can help catch some code errors. Signed-off-by: Benjamin Marzinski --- diff --git a/Makefile.inc b/Makefile.inc index 02aef4f..b0c68f4 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -38,7 +38,11 @@ mpathpersistdir = $(TOPDIR)/libmpathpersist GZIP = /bin/gzip -9 -c INSTALL_PROGRAM = install -OPTFLAGS = -pipe -g -Wall -Wunused -Wstrict-prototypes +ifndef RPM_OPT_FLAGS + RPM_OPT_FLAGS = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 +endif + +OPTFLAGS = $(RPM_OPT_FLAGS) -Wunused -Wstrict-prototypes CFLAGS = $(OPTFLAGS) -fPIC -DLIB_STRING=\"${LIB}\" SHARED_FLAGS = -shared