[Buildroot] [PATCH v2 2/2] package/libtomcrypt: compile with -fPIC to enable linking to dynamic libraries/exectuables
Peter Korsgaard
peter at korsgaard.com
Sat May 8 09:35:04 UTC 2021
>>>>> "Peter" == Peter Seiderer <ps.report at gmx.net> writes:
> Fixes:
> .../x86_64-buildroot-linux-gnu/bin/ld: .../host/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libtomcrypt.a(md5.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
> Signed-off-by: Peter Seiderer <ps.report at gmx.net>
> ---
> Changes v1 -> v2:
> - add -fPIC only for non static builds (suggested by Arnout Vandecappelle)
Committed to 2021.02.x, thanks.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list