packaging: Add -fPIC flag to perf build cflags 27/216727/1 submit/tizen/20191031.023155
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 31 Oct 2019 03:42:36 +0000 (12:42 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 31 Oct 2019 07:50:13 +0000 (16:50 +0900)
commit1a421866df009aa6c06fb860891a85ae92c32a72
treecbb991346157d4aaa5008b0d0f901fe93e026b5f
parentd93b3b7ce563d0535a15b9a24887ae18450fa8b9
packaging: Add -fPIC flag to perf build cflags

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>
packaging/linux-rpi3.spec