summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2019-10-31 12:42:36 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2019-10-31 16:50:13 +0900
commit1a421866df009aa6c06fb860891a85ae92c32a72 (patch)
treecbb991346157d4aaa5008b0d0f901fe93e026b5f
parentd93b3b7ce563d0535a15b9a24887ae18450fa8b9 (diff)
downloadlinux-rpi3-1a421866df009aa6c06fb860891a85ae92c32a72.tar.gz
linux-rpi3-1a421866df009aa6c06fb860891a85ae92c32a72.tar.bz2
linux-rpi3-1a421866df009aa6c06fb860891a85ae92c32a72.zip
packaging: Add -fPIC flag to perf build cflagssubmit/tizen/20191031.023155
Current Tizen build environment requires -fPIC with relocation and without the flag, there is build error for perf like below: armv7l armv7l-tizen-linux-gnueabi/bin/ld: perf-in.o: relocation R_ARM_MOVW_ABS_NC against `__stack_chk_guard' can not be used when making a shared object; recompile with -fPIC aarch64 aarch64-tizen-linux-gnu/bin/ld: perf-in.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against external symbol `__stack_chk_guard@@GLIBC_2.17' can not be used when making a shared object; recompile with -fPIC aarch64-tizen-linux-gnu/bin/ld: perf-in.o(.text+0x4): unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol `__stack_chk_guard@@GLIBC_2.17' Add -fPIC flag to perf build. Change-Id: Icca04801698c88180dfde493a3ef92e5c01612b5 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rw-r--r--packaging/linux-rpi3.spec2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/linux-rpi3.spec b/packaging/linux-rpi3.spec
index ed7aae01c0be..71a40a51792e 100644
--- a/packaging/linux-rpi3.spec
+++ b/packaging/linux-rpi3.spec
@@ -97,7 +97,7 @@ make modules %{?_smp_mflags}
# 1-5. Build perf
make -s -C tools/lib/traceevent %{?_smp_mflags}
-make -s -C tools/perf %{?_smp_mflags}
+make -s -C tools/perf EXTRA_CFLAGS=-fPIC %{?_smp_mflags}
%install
QA_SKIP_BUILD_ROOT="DO_NOT_WANT"; export QA_SKIP_BUILD_ROOT