Closed
Description
When attempting to build rustc without optimzations, linking of std
fails because:
= note: /usr/local/bin/ld: /tmp/rustc.6VSDxArmnzqR/libcompiler_builtins-614d629936883e62.rlib(compiler_builtins-614d629936883e62.6.o): relocation R_X86_64_PC32 against symbol `memcpy@@GLIBC_2.14' can not be used when making a shared object; recompile with -fPIC
/usr/local/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
I guess this can be fixed by either compiling compiler_builtins
as PIC or by making it not depend on memcpy
. Which would be the correct fix? Intuitively I would say that compiler_builtins
should not have any dependencies.