From 5548313d47e37e966b1ac3bf5deaad8e0c42666b Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Fri, 7 May 2021 22:54:42 -0700 Subject: ffmpeg: Probe for PIC For nasm, we cannot just use __PIC__ from the preprocessor, so add a probe test for it. --- probe/PIC | 3 +++ probe/gen.lua | 1 + 2 files changed, 4 insertions(+) create mode 100644 probe/PIC (limited to 'probe') diff --git a/probe/PIC b/probe/PIC new file mode 100644 index 00000000..e93a37d2 --- /dev/null +++ b/probe/PIC @@ -0,0 +1,3 @@ +int main(void) { + return __PIC__ == 0; +} diff --git a/probe/gen.lua b/probe/gen.lua index 92f26769..d8c48958 100644 --- a/probe/gen.lua +++ b/probe/gen.lua @@ -10,6 +10,7 @@ probe('HAVE___BUILTIN_CHOOSE_EXPR') probe('HAVE___BUILTIN_CLZ') probe('HAVE___BUILTIN_CTZL') probe('HAVE___BUILTIN_POPCOUNT') +probe('PIC') local function probesize(var) build('probe-size', '$outdir/'..var, {'$dir/'..var, '|', '$basedir/scripts/probe-size.sh'}, {var=var}) -- cgit v1.2.3