[ 94s] /usr/lib64/gcc/aarch64-tizen-linux-gnu/9.2.0/../../../../aarch64-tizen-linux-gnu/bin/ld: lzmadec-xzdec.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__stack_chk_guard@@GLIBC_2.17' which may bind externally can not be used when making a shared object; recompile with -fPIC
Change-Id: I924eb664e6df6b92d3dde127740da577df91f849
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
%{__patch} -p1 < %{SOURCE10}
%build
-export CFLAGS="${CFLAGS} -fPIC"
-
%if %{do_profiling}
profiledir=$(mktemp -d)
trap "rm -rf $profiledir" EXIT
%if "%{asan}" == "1"
export PTHREAD_LIBS=" -lpthread "
%endif
+export CFLAGS+=" -fPIC"
%configure --disable-static --with-pic --docdir=%{_docdir}/%{name}
%__make %{?_smp_mflags}
+
%if %{do_profiling}
time %__make check
%__make clean
+
export CFLAGS="%{optflags} %{cflags_profile_feedback}=$profiledir -Wno-coverage-mismatch"
+export CFLAGS+=" -fPIC"
+
%configure --disable-static --with-pic --docdir=%{_docdir}/%{name}
%__make %{?_smp_mflags}
%endif