switch compilation mode from Thumb to ARM 37/156437/3 accepted/tizen/unified/20171019.145715 submit/tizen/20171019.034316
authorAdrian Szyndela <adrian.s@samsung.com>
Wed, 18 Oct 2017 09:27:57 +0000 (11:27 +0200)
committerAdrian Szyndela <adrian.s@samsung.com>
Wed, 18 Oct 2017 09:54:50 +0000 (11:54 +0200)
This is needed to be able to put uprobes in the library code as
the uprobes in current kernel versions work only with ARM code.

Change-Id: I5e2ee2ac37fda354fa93f080e5553d2c823144ec

packaging/dbus.spec

index 2a152cb..3ec0480 100644 (file)
@@ -113,6 +113,9 @@ cp %{SOURCE1001} .
 # We use -fpie/-pie for the whole build; this is the recommended way to harden
 # the build upstream, see discussion in fdo#46570
 export CFLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing -fPIC -fpie"
+%ifarch %{arm}
+export CFLAGS="$CFLAGS -marm"
+%endif
 export LDFLAGS="-pie"
 export CXXFLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing"
 export CFLAGS="$CFLAGS -fstack-protector"