Environment
Amazon Linux AMI x86_64
tcc version 0.9.26
Steps to repro
- clone repo, cd instal repo
- ./autogen.sh
- ./configure
- make
Make fails with the error:
/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
Environment
Amazon Linux AMI x86_64
tcc version 0.9.26
Steps to repro
Make fails with the error: