cc: add -ldl and .o in cross builds

pull/5462/head
Alexander Medvednikov 2020-06-23 12:57:06 +02:00
parent 63ef04e03e
commit 076d0208cd
1 changed files with 2 additions and 0 deletions

View File

@ -555,9 +555,11 @@ fn (mut b Builder) cc_linux_cross() {
'-lcrypto'
'-lssl'
'-lpthread'
'-ldl'
//'-dynamic-linker /usr/lib/x86_64-linux-gnu/libcrypto.so'
//'SYSROOT/lib/x86_64-linux-gnu/libssl.a'
'$sysroot/crtn.o'
cflags.c_options_only_object_files()
]
linker_args_str := linker_args.join(' ')
cmd := '$sysroot/ld.lld ' + linker_args_str