From bf4acc611a620d9579969a90e4187b759ddb8a99 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Tue, 13 Apr 2021 15:57:27 -0700 Subject: file: Build strlcpy into host magic compiler If the host system is glibc-based, we need the fallback strlcpy implementation. --- pkg/file/gen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg') diff --git a/pkg/file/gen.lua b/pkg/file/gen.lua index b1cc4a28..a1c9e112 100644 --- a/pkg/file/gen.lua +++ b/pkg/file/gen.lua @@ -49,7 +49,7 @@ sub('host.ninja', function() ([[-D 'VERSION="%s"']]):format(version), } set('outdir', '$outdir/host') - exe('magic', 'src/(magic.c apprentice.c encoding.c print.c funcs.c cdf_time.c)') + exe('magic', 'src/(magic.c apprentice.c encoding.c print.c funcs.c cdf_time.c strlcpy.c)') end) rule('magic', 'cd $outdir && ./host/magic magic') -- cgit v1.2.3