From: Dongkyun Son Date: Mon, 29 Jul 2024 01:44:14 +0000 (+0900) Subject: packaging: replace fPIE into fPIC X-Git-Tag: accepted/tizen/unified/x/20240731.013421^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_dev;p=platform%2Fupstream%2Fgdb.git packaging: replace fPIE into fPIC FIX error: gdbsupport/safe-strerror-ipa.o: relocation r_x86_64_tpoff32 against `_zz13safe_strerrorie3buf' can not be used when making a shared object Change-Id: Ib871a4d30200369a0be87640aeaff050383f482d Signed-off-by: Dongkyun Son --- diff --git a/packaging/gdb.spec b/packaging/gdb.spec index c1ccd685e..ed9f5825a 100644 --- a/packaging/gdb.spec +++ b/packaging/gdb.spec @@ -95,11 +95,11 @@ rm -f gdb/doc/*.info rm -f gdb/doc/*.info-* %build -export CFLAGS+=" -fPIE" +export CFLAGS+=" -fPIC" #If you want to add a new LDFLAGS to IPA, add it to `IPA_LDFLAGS` rather than` LDFLAGS`. export LIB_CXXFLAGS=$CXXFLAGS export IPA_LDFLAGS=$LDFLAGS -export CXXFLAGS+=" -fPIE" +export CXXFLAGS+=" -fPIC" export LDFLAGS+=" -pie" %{!?gdb_skip_configure: