summaryrefslogtreecommitdiff
path: root/sys/src/cmd/vl/mkfile
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-04-11 05:03:49 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2020-04-11 05:03:49 +0200
commit1b8a56941708e6fe884f4649f718fae7c543c045 (patch)
tree3d7be0a7e43b01aba6dd986bff06bcc3947a6d78 /sys/src/cmd/vl/mkfile
parent9d46360c9d83fa95f42f1eebbad49ecd9281fb0d (diff)
cc, ?[acl]: fix gethunk() and move common memory allocator code to cc/compat
for gethunk() to work, all allocators have to use it, including allocations done by libc thru malloc(), so the fake allocation functions are mandatory for everyone. to avoid duplication the code is moved to cc/compat and prototypes provided in new cc/compat.h header.
Diffstat (limited to 'sys/src/cmd/vl/mkfile')
-rw-r--r--sys/src/cmd/vl/mkfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/src/cmd/vl/mkfile b/sys/src/cmd/vl/mkfile
index 82b008ee7..96a4d7800 100644
--- a/sys/src/cmd/vl/mkfile
+++ b/sys/src/cmd/vl/mkfile
@@ -16,6 +16,7 @@ OFILES=\
HFILES=\
l.h\
../vc/v.out.h\
+ ../cc/compat.h\
BIN=/$objtype/bin
</sys/src/cmd/mkone
@@ -23,6 +24,8 @@ BIN=/$objtype/bin
enam.$O: ../vc/enam.c
$CC $CFLAGS ../vc/enam.c
+compat.$O: ../cc/compat
+
x:V: $O.out
$O.out -la -o/dev/null x.v