<div dir="ltr">Hi all,<div><br></div><div>I'm trying to compile LLC into one huge binary. </div><div>I'd like to send LLC to someone who uses RHEL 4.4 from 2006.</div><div><br></div><div>Has anyone attempted this before?</div><div><br></div><div>I tried the following: </div><div><br></div><div>cmake -DCMAKE_EXE_LINKER_FLAGS="-static" -DBUILD_SHARED_LIBS=OFF DCMAKE_FIND_LIBRARY_SUFFIXES=".a" ../<br></div><div><br></div><div>Which results in an error:</div><div><div>/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</div><div>/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</div></div><div><br></div><div><br></div><div>Anyone have a clue?</div><div><br></div><div>Best regards,</div><div><br></div><div>Rick Veens</div></div>