summaryrefslogtreecommitdiff
path: root/pkg/libevent/gen.lua
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-10-01 13:25:16 -0700
committerMichael Forney <mforney@mforney.org>2020-10-01 13:36:42 -0700
commit1f2e76986582463195a6710362d7fec9c2507ad0 (patch)
tree93e316874e09c7699347c6845491a07db25131c9 /pkg/libevent/gen.lua
parentceb251f15ad0c90dd4bdc7da4d6bf049e0578f95 (diff)
openbsd: Explicitly list the libc headers that are required
Previously, we just added the openbsd header directories to the search path with -idirafter to prevent openbsd headers from being used where we already have musl headers. However, if the system had its own version of the headers (such as sys/tree.h), those would get preferred over the openbsd versions, which may result in build failures due to slight incompatibilities. To fix this, just isolate the few headers we do need into their own directory, and include it normally (with -I/-isystem).
Diffstat (limited to 'pkg/libevent/gen.lua')
-rw-r--r--pkg/libevent/gen.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/libevent/gen.lua b/pkg/libevent/gen.lua
index f1fd01dc..7b614e3e 100644
--- a/pkg/libevent/gen.lua
+++ b/pkg/libevent/gen.lua
@@ -2,7 +2,7 @@ cflags{
'-I $dir',
'-I $outdir/include',
'-I $srcdir/include',
- '-idirafter $basedir/pkg/openbsd/src/sys',
+ '-isystem $builddir/pkg/openbsd/include',
}
build('sed', '$outdir/include/event2/event-config.h', {'$dir/config.h', '|', '$srcdir/make-event-config.sed'}, {
@@ -24,7 +24,7 @@ pkg.hdrs = {
}
pkg.deps = {
'$gendir/headers',
- 'pkg/openbsd/fetch',
+ 'pkg/openbsd/headers',
}
lib('libevent.a', {