From 8d14b1749a0929958c6b32ebd30143179f87eb4d Mon Sep 17 00:00:00 2001 From: flysand7 Date: Fri, 28 Jul 2023 20:41:37 +1100 Subject: [PATCH] Make cuik compile --- build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.py b/build.py index 750905d..e5caabd 100755 --- a/build.py +++ b/build.py @@ -240,7 +240,7 @@ if target == 'linux': elif target == 'windows': assemble(p('src/windows/chkstk.asm'), p('bin/chkstk.o')) compile([p('src/windows/crt-entry.c')], p('bin/crt-entry.o'), '-c') - archive([p('bin/crt-entry.o')], crt_lib) + archive([p('bin/crt-entry.o'), p('bin/chkstk.o')], crt_lib) compile([ciabatta_c], ciabatta_o, '-c') archive([ciabatta_o], cia_lib) @@ -248,4 +248,4 @@ if args.test: if target == 'linux': compile([args.test, cia_lib, crt_lib], 'a', '-pie') elif target == 'windows': - compile([args.test, cia_lib, crt_lib], 'a.exe', '-lkernel32') + compile([args.test, cia_lib, crt_lib], 'a.exe', '-lkernel32.lib')