summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Szyndela <adrian.s@samsung.com>2017-10-18 11:27:57 +0200
committerAdrian Szyndela <adrian.s@samsung.com>2017-10-18 11:54:50 +0200
commit86eaa0311f794a55b098f3b2b864e90db151c84f (patch)
tree64b01f81d9f77b853d1e9cbbfcfe37a0c00b34f7
parenta8b13762f21734a534a16eb74fdf109949874149 (diff)
downloaddbus-86eaa0311f794a55b098f3b2b864e90db151c84f.tar.gz
dbus-86eaa0311f794a55b098f3b2b864e90db151c84f.tar.bz2
dbus-86eaa0311f794a55b098f3b2b864e90db151c84f.zip
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
-rw-r--r--packaging/dbus.spec3
1 files changed, 3 insertions, 0 deletions
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"