Prevent false positive during check source 92/20792/2
authorFrederic Marec <frederic.marec@iot.bzh>
Sun, 24 Mar 2019 10:57:51 +0000 (11:57 +0100)
committerFrederic Marec <frederic.marec@iot.bzh>
Mon, 25 Mar 2019 15:09:11 +0000 (16:09 +0100)
At runtime CFLAG _FORTIFY_SOURCE can provide false positive during its
checking. Change _FORTIFY_SOURCE level to 1 to avoid wrong comportement
of the package.

Change-Id: Ice4b386c253c87903e58f82a446416831cb4c6bf
Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
conf.d/packaging/rpm/agl-app-framework-binder.spec

index 9883b7c..150fd9f 100644 (file)
@@ -57,7 +57,7 @@ This service is evolving permanently and is only designed as a helper for develo
 
 %build
 export PKG_CONFIG_PATH=%{_libdir}/pkgconfig
-%cmake  -DAGL_DEVEL=1 -DINCLUDE_MONITORING=ON
+%cmake  -DAGL_DEVEL=1 -DINCLUDE_MONITORING=ON -DCMAKE_C_FLAGS="-D_FORTIFY_SOURCE=1"
 %__make %{?_smp_mflags}