1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cc: add -ldl and .o in cross builds

This commit is contained in:
Alexander Medvednikov 2020-06-23 12:57:06 +02:00
parent 63ef04e03e
commit 076d0208cd

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