From 86eaa0311f794a55b098f3b2b864e90db151c84f Mon Sep 17 00:00:00 2001 From: Adrian Szyndela Date: Wed, 18 Oct 2017 11:27:57 +0200 Subject: switch compilation mode from Thumb to ARM 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packaging/dbus.spec b/packaging/dbus.spec index 2a152cbb..3ec0480c 100644 --- a/packaging/dbus.spec +++ b/packaging/dbus.spec @@ -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" -- cgit v1.2.3