Skip to content

make fails with /usr/local/lib/libtcc.a: could not read symbols: Bad value #3

@thebigbad

Description

@thebigbad

Environment

Amazon Linux AMI x86_64
tcc version 0.9.26

Steps to repro

  1. clone repo, cd instal repo
  2. ./autogen.sh
  3. ./configure
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions