From e8de3964688787b9d6b14ce173a254b0fc2e38ad Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 10 Jul 2019 19:04:30 -0700 Subject: pixman, nasm: Probe for __builtin_clz --- pkg/nasm/gen.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'pkg/nasm/gen.lua') 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/( -- cgit v1.2.3