packaging: replace fPIE into fPIC 02/315302/1 accepted/tizen_unified_toolchain tizen_dev accepted/tizen/unified/20241121.055700 accepted/tizen/unified/toolchain/20241004.102031 accepted/tizen/unified/x/20240731.013421 accepted/tizen/unified/x/asan/20240813.231851
authorDongkyun Son <dongkyun.s@samsung.com>
Mon, 29 Jul 2024 01:44:14 +0000 (10:44 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Tue, 30 Jul 2024 03:29:36 +0000 (12:29 +0900)
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 <dongkyun.s@samsung.com>
packaging/gdb.spec

index c1ccd685e376f7e5d42e4e50607ab096f345d706..ed9f5825a1ca24417412704c256dc7463fc8d550 100644 (file)
@@ -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: