From aebd7f194fef233dd5945df22d4cce5255189960 Mon Sep 17 00:00:00 2001 From: Dongkyun Son Date: Mon, 29 Jul 2024 10:44:14 +0900 Subject: [PATCH] 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 Signed-off-by: Dongkyun Son --- packaging/gdb.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.34.1