summaryrefslogtreecommitdiff
path: root/pkg/sinit/gen.lua
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-07-24 18:04:04 -0700
committerMichael Forney <mforney@mforney.org>2021-07-24 18:08:16 -0700
commit995b307746340db5a569d8c0f35f3a9938838d46 (patch)
tree3f0b9b1367e70f3d2ef67ea4b000ef9043801fa5 /pkg/sinit/gen.lua
parentd7116615c1f14c90a5d30088910a8f62e853ae89 (diff)
Move shutdown helper to sinit package
Diffstat (limited to 'pkg/sinit/gen.lua')
-rw-r--r--pkg/sinit/gen.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/sinit/gen.lua b/pkg/sinit/gen.lua
index a461cc4f..67c0a561 100644
--- a/pkg/sinit/gen.lua
+++ b/pkg/sinit/gen.lua
@@ -1,5 +1,5 @@
cflags{
- '-std=c99', '-Wall', '-Wextra',
+ '-std=c99', '-Wall', '-Wpedantic',
'-D _POSIX_C_SOURCE=200809L',
string.format([[-D 'PREFIX="%s"']], config.prefix),
'-I $dir',
@@ -9,4 +9,7 @@ file('bin/sinit', '755', exe('sinit', {'sinit.c'}))
sym('bin/init', 'sinit')
man{'sinit.8'}
+build('cc', '$outdir/shutdown.c.o', '$dir/shutdown.c')
+file('libexec/shutdown', '755', exe('shutdown', {'shutdown.c.o'}))
+
fetch'git'