You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -o libpez.la -rpath /usr/local/lib pez.lo st.lo -ltcc -lgc -ldl -lm
libtool: link: gcc -shared .libs/pez.o .libs/st.o -ltcc -lgc -ldl -lm -Wl,-soname -Wl,libpez.so.0 -o .libs/libpez.so.0.0.0
/usr/bin/ld: /usr/local/lib/libtcc.a(libtcc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libtcc.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libpez.la] Error 1
The text was updated successfully, but these errors were encountered:
The problem seems to be in the way libtcc was built. Adding "-DPIC -fPIC" to the CFLAGS when building libtcc ought to fix it.
0.9.26 is finally out as of a couple of weeks ago; I think there are API changes, but when I get the time I'll try to see how well Pez does with the new version. 0.9.26 does (among other things) a better job with x86-64 and ARM.
Environment
Amazon Linux AMI x86_64
tcc version 0.9.26
Steps to repro
Make fails with the error:
The text was updated successfully, but these errors were encountered: