When trying to build I got an error by the linker:
/usr/bin/ld: chared.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
chared.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libedit.so] Error 1
I changed this:
Index: libedit/configure
===================================================================
--- libedit.orig/configure
+++ libedit/configure
@@ -733,13 +733,13 @@ if test "$ac_test_CFLAGS" = set; then
CFLAGS="$ac_save_CFLAGS"
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
- CFLAGS="-g -O2"
+ CFLAGS="-g -O2 -fPIC"
else
- CFLAGS="-g"
+ CFLAGS="-g -fPIC"
fi
else
if test "$GCC" = yes; then
- CFLAGS="-O2"
+ CFLAGS="-O2 -fPIC"
else
CFLAGS=
fi
Now it works on my system. If that is the right way to solve those problems, I am not sure.
Please have a look yourself.