diff options
| author | Michael Forney <mforney@mforney.org> | 2020-02-20 18:54:33 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-02-20 18:54:33 -0800 |
| commit | 55bf927462ee5a8e5984d14e61c221d7d3da1ca4 (patch) | |
| tree | 54b982609334d7a847e0afce9343b1bf1c043e8a | |
| parent | 0d8fcdb0bccfe0c41b887f39d94e105711dd917a (diff) | |
musl: Fix dependencies when $dir != $gendir
| -rw-r--r-- | pkg/musl/gen.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/musl/gen.lua b/pkg/musl/gen.lua index fad791c8..8c248b74 100644 --- a/pkg/musl/gen.lua +++ b/pkg/musl/gen.lua @@ -61,7 +61,7 @@ pkg.hdrs = { install=true, } pkg.deps = { - '$dir/headers', + '$gendir/headers', '$outdir/version.h', } @@ -117,7 +117,7 @@ end local startfiles = {'$outdir/libc.a'} for _, obj in ipairs{'crt1.o', 'crti.o', 'crtn.o', 'rcrt1.o', 'Scrt1.o'} do local out = '$outdir/'..obj - build('cc', out, '$srcdir/crt/'..obj:gsub('%.o$', '.c'), {cflags='$cflags -D CRT $cflags_nossp'}) + build('cc', out, {'$srcdir/crt/'..obj:gsub('%.o$', '.c'), '|', '$gendir/deps'}, {cflags='$cflags -D CRT $cflags_nossp'}) file('lib/'..obj, '644', out) table.insert(startfiles, out) end |
