From 6673d9ab5267ff9cfc85f22c38fed5c5e0916df5 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Tue, 16 Oct 2018 20:03:05 -0700 Subject: curl: Probe for size of size_t, time_t and long There are still several more SIZEOF_* constants in curl_config.h, but they seem to match for architectures we care about. --- pkg/curl/gen.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'pkg/curl/gen.lua') diff --git a/pkg/curl/gen.lua b/pkg/curl/gen.lua index 2ecd45d6..9fa4dacb 100644 --- a/pkg/curl/gen.lua +++ b/pkg/curl/gen.lua @@ -2,7 +2,7 @@ cflags{ '-D HAVE_CONFIG_H', '-D BUILDING_LIBCURL', '-D CURL_STATICLIB', - '-I $dir', + '-I $outdir', '-I $outdir/include/curl', '-I $outdir/include', '-I $srcdir/lib', @@ -11,6 +11,13 @@ cflags{ '-I $builddir/pkg/zlib/include', } +build('cat', '$outdir/curl_config.h', { + '$dir/curl_config.h', + '$builddir/probe/SIZEOF_LONG', + '$builddir/probe/SIZEOF_SIZE_T', + '$builddir/probe/SIZEOF_TIME_T', +}) + pkg.hdrs = copy('$outdir/include/curl', '$srcdir/include/curl', { 'curl.h', 'curlver.h', @@ -22,6 +29,7 @@ pkg.hdrs = copy('$outdir/include/curl', '$srcdir/include/curl', { 'system.h', }) pkg.deps = { + '$outdir/curl_config.h', '$dir/headers', 'pkg/libressl/headers', 'pkg/zlib/headers', -- cgit v1.2.3