[llvm-dev] Compiling LLC into one huge binary

Rick Veens via llvm-dev llvm-dev at lists.llvm.org
Fri Nov 10 07:44:56 PST 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171110/666d7cfb/attachment.html>


More information about the llvm-dev mailing list