(original) (raw)

Hi all,

I'm trying to compile LLC into one huge binary.
I'd like to send LLC to someone who uses RHEL 4.4 from 2006.

Has anyone attempted this before?

I tried the following:

cmake -DCMAKE\_EXE\_LINKER\_FLAGS="-static" -DBUILD\_SHARED\_LIBS=OFF DCMAKE\_FIND\_LIBRARY\_SUFFIXES=".a" ../

Which results in an error:
/home/rick/Documents/llvm/lib/Support/DynamicLibrary.cpp:60: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: dynamic STT\_GNU\_IFUNC symbol \`strcmp' with pointer equality in \`/usr/lib/gcc/x86\_64-linux-gnu/4.9/../../../x86\_64-linux-gnu/libc.a(strcmp.o)' can not be used when making an executable; recompile with -fPIE and relink with -pie


Anyone have a clue?

Best regards,

Rick Veens