From 8d4c9823ba639ae29a6c7fa87d48d796c6298de0 Mon Sep 17 00:00:00 2001 From: kac- Date: Mon, 14 Jun 2021 14:42:56 +0200 Subject: [PATCH] tools,clipboard: use lowercase library names for `-luser32`etc, allowing linux->windows cross compilation of ui programs (#10455) --- cmd/tools/vsymlink.v | 4 ++-- vlib/clipboard/clipboard_windows.c.v | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/tools/vsymlink.v b/cmd/tools/vsymlink.v index dafd90c56b..e2714b9251 100644 --- a/cmd/tools/vsymlink.v +++ b/cmd/tools/vsymlink.v @@ -4,8 +4,8 @@ import v.util $if windows { $if tinyc { - #flag -lAdvapi32 - #flag -lUser32 + #flag -ladvapi32 + #flag -luser32 } } fn main() { diff --git a/vlib/clipboard/clipboard_windows.c.v b/vlib/clipboard/clipboard_windows.c.v index f78566e0ca..9ae42d1fce 100644 --- a/vlib/clipboard/clipboard_windows.c.v +++ b/vlib/clipboard/clipboard_windows.c.v @@ -3,7 +3,7 @@ module clipboard import time #include -#flag -lUser32 +#flag -luser32 struct WndClassEx { cb_size u32