Change-Id: I2ad97b89cf85fbea165550da24477434fd822ec6
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
%build
-export CFLAGS+=" $RPM_OPT_FLAGS -Wall -Werror -O2 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -Wno-unused-value"
-export LDFLAGS+=" -Wl,--as-needed"
+export CFLAGS+=" $RPM_OPT_FLAGS -Wall -Werror -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fPIE -pie -fno-strict-aliasing -Wno-unused-value"
+export LDFLAGS+=" -Wl,-z,relro,--as-needed"
%autogen.sh
%configure --enable-devel --with-kernel=/usr --with-kbuild=/usr --with-ksource=/usr --disable-nftables