From 076d0208cd826e2a8bf536e08a9d2d316747dda4 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 23 Jun 2020 12:57:06 +0200 Subject: [PATCH] cc: add -ldl and .o in cross builds --- vlib/v/builder/cc.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vlib/v/builder/cc.v b/vlib/v/builder/cc.v index 1613bb32a2..fc49d20689 100644 --- a/vlib/v/builder/cc.v +++ b/vlib/v/builder/cc.v @@ -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