spec: fixed compilation options to reduce warnings 50/194150/1
authorAdrian Szyndela <adrian.s@samsung.com>
Thu, 29 Nov 2018 09:23:44 +0000 (10:23 +0100)
committerAdrian Szyndela <adrian.s@samsung.com>
Thu, 29 Nov 2018 09:26:08 +0000 (10:26 +0100)
If -mimplicit-it option is set to thumb while compiling to ARM,
then it shows lots of:
Warning: conditional outside an IT block for Thumb.

This commit removes -mimplicit-it from the compilation options on ARM32 arch.

Change-Id: I6eea9ef65e61b8ec7afa16035d4a14d6d7f870e4

packaging/dbus.spec

index a521dc5..b5603b7 100644 (file)
@@ -115,7 +115,7 @@ cp %{SOURCE1001} .
 # the build upstream, see discussion in fdo#46570
 export CFLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing -fPIC -fpie"
 %ifarch %{arm}
-export CFLAGS="$CFLAGS -marm"
+export CFLAGS=${CFLAGS/-Wa,-mimplicit-it=thumb/}" -marm"
 %endif
 export LDFLAGS="-pie"
 export CXXFLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing"