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