From 4ed68f73dae9e7621d7d7512b5feb686e9440bb2 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Thu, 6 Jan 2022 23:39:21 +0000 Subject: Tidy up stubs, make vstdlib a stub, build on Linux Important note: it doesn't WORK on Linux, and there's tons of warnings and stuff, but it's easier to work on when all the compiler output and whatnot is there. --- compile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'compile') diff --git a/compile b/compile index 26aa925..f3af608 100755 --- a/compile +++ b/compile @@ -21,7 +21,8 @@ cc() { } ld() { - clang -m32 -shared -O2 -flto -fpic -s -fuse-ld=lld -L.build -ldl -o sst.so$objs + clang -m32 -shared -O2 -flto -fpic -s -fuse-ld=lld -L.build -ldl -ltier0 \ + -lvstdlib -o sst.so$objs } src="\ @@ -45,7 +46,8 @@ clang -O2 -fuse-ld=lld $warnings -D_FILE_OFFSET_BITS=64 -o .build/mkgamedata \ .build/codegen `for s in $src; do echo "src/$s"; done` .build/mkgamedata gamedata/gamelib.kv gamedata/engine.kv for s in $src; do cc "$s"; done -clang -m32 -shared -fpic -fuse-ld=lld -O0 -w -o .build/libtier0.so src/tier0stub.c +clang -m32 -shared -fpic -fuse-ld=lld -O0 -w -o .build/libtier0.so src/stubs/tier0.c +clang -m32 -shared -fpic -fuse-ld=lld -O0 -w -o .build/libvstdlib.so src/stubs/vstdlib.c ld clang -fuse-ld=lld -O2 -g3 -include test/test.h -o .build/bitbuf.test test/bitbuf.test.c @@ -53,7 +55,7 @@ clang -fuse-ld=lld -O2 -g3 -include test/test.h -o .build/bitbuf.test test/bitbu # skipping this test on linux for now, since inline hooks aren't compiled in #clang -m32 -fuse-ld=lld -O2 -g3 -include test/test.h -o .build/hook.test test/hook.test.c #.build/hook.test -clang -fuse-ld=lld -O2 -g3 -include test/test.h -o .build/kv test/kv.test.c +clang -fuse-ld=lld -O2 -g3 -include test/test.h -o .build/kv.test test/kv.test.c .build/kv.test # vi: sw=4 tw=4 noet tw=80 cc=80 -- cgit v1.2.3