summaryrefslogtreecommitdiff
path: root/pkg/nasm/gen.lua
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/nasm/gen.lua')
-rw-r--r--pkg/nasm/gen.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkg/nasm/gen.lua b/pkg/nasm/gen.lua
index 96994eb6..a03e340a 100644
--- a/pkg/nasm/gen.lua
+++ b/pkg/nasm/gen.lua
@@ -1,6 +1,6 @@
cflags{
'-D HAVE_CONFIG_H',
- '-I $dir',
+ '-I $outdir',
'-I $srcdir',
'-I $srcdir/include',
'-I $srcdir/x86',
@@ -9,6 +9,13 @@ cflags{
'-I $srcdir/output',
}
+build('cat', '$outdir/config/config.h', {
+ '$builddir/probe/HAVE___BUILTIN_CLZ',
+ '$dir/config.h',
+})
+
+pkg.deps = {'$outdir/config/config.h'}
+
lib('libnasm.a', [[
stdlib/(snprintf.c vsnprintf.c strlcpy.c strnlen.c strrchrnul.c)
nasmlib/(