From 9ab291319cafb449b82f49ab2e67c547a60d4448 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 22 Feb 2021 08:18:24 +0200 Subject: [PATCH] builder: fix thirdparty object files compilation with tcc (no -lxyz with -c) --- vlib/v/builder/cc.v | 1 - 1 file changed, 1 deletion(-) diff --git a/vlib/v/builder/cc.v b/vlib/v/builder/cc.v index 68f2a8b0fd..964598a77a 100644 --- a/vlib/v/builder/cc.v +++ b/vlib/v/builder/cc.v @@ -975,7 +975,6 @@ fn (mut v Builder) build_thirdparty_obj_file(path string, moduleflags []cflag.CF all_options << moduleflags.c_options_before_target() all_options << '-o "$opath"' all_options << '-c "$cfile"' - all_options << moduleflags.c_options_after_target() cc_options := v.ccoptions.thirdparty_object_args(all_options).join(' ') cmd := '$v.pref.ccompiler $cc_options' $if trace_thirdparty_obj_files ? {