how to properly build Harbour on Ubuntu 20.04 64 bit ?

87 views
Skip to first unread message

Antonio Linares

unread,
Dec 1, 2022, 3:42:54 AM12/1/22
to Harbour Developers
Trying to build Harbour on Linux as usual, we get these errors:

/usr/bin/ld: /home/anto/harbour/lib/linux/gcc/libhbvmmt.a(hvmall.o): relocation R_X86_64_TPOFF32 against `hb_stack_ptr' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/anto/harbour/lib/linux/gcc/libhbpcre.a(pcreexec.o): relocation R_X86_64_PC32 against symbol `_pcre_ucd_stage2' can not be used when making a shared object; recompile with -fPIC

any hints ?

many thanks

Antonio Linares

unread,
Dec 1, 2022, 4:11:52 AM12/1/22
to Harbour Developers
Solved using 

export HB_USER_CFLAGS=-fPIC
Reply all
Reply to author
Forward
0 new messages