summaryrefslogtreecommitdiff
path: root/pkg/openbsd/gen.lua
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/openbsd/gen.lua')
-rw-r--r--pkg/openbsd/gen.lua11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkg/openbsd/gen.lua b/pkg/openbsd/gen.lua
index 54ef4fed..2f7a4854 100644
--- a/pkg/openbsd/gen.lua
+++ b/pkg/openbsd/gen.lua
@@ -2,11 +2,16 @@ cflags{
'-Wall', '-Wno-pointer-sign', '-Wno-maybe-uninitialized', '-Wno-attributes',
[[-D 'DEF_WEAK(n)=_Static_assert(1, "")']],
'-I $dir/include',
- '-idirafter $srcdir/include',
- '-idirafter $srcdir/sys',
- '-idirafter $srcdir/lib/libutil',
+ '-I $outdir/include',
}
+pkg.hdrs = {
+ copy('$outdir/include', '$srcdir/sys', {'sys/queue.h', 'sys/tree.h', 'sys/_null.h'}),
+ copy('$outdir/include', '$srcdir/include', {'fts.h', 'vis.h'}),
+ copy('$outdir/include', '$srcdir/lib/libutil', {'ohash.h'}),
+}
+pkg.deps = {'$gendir/headers'}
+
-- Link arc4random.c to '$outdir' so that it doesn't include the local
-- arc4random.h
build('copy', '$outdir/lib/libc/crypt/arc4random.c', '$srcdir/lib/libc/crypt/arc4random.c')