From 99a424870d90bf94bc990d530451ac2ac49715f1 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Mon, 12 Aug 2024 15:53:41 +0200 Subject: [PATCH] fixup! Correctly check for function strerror_r --- xapian-core/meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xapian-core/meson.build b/xapian-core/meson.build index 94961f3ac..5d117bdaf 100644 --- a/xapian-core/meson.build +++ b/xapian-core/meson.build @@ -226,7 +226,11 @@ main (void) } ''' -strerror_p_ret = cc.run( +# We should check with target compiler. But to do so we must be able to run the +# test program on the target machine. Let's assume that native build return the same +# thing that target build. [TOFIX] +native_cc = meson.get_compiler('cpp', native: true) +strerror_p_ret = native_cc.run( test_strerror_p_ret, name: 'Test if strerror_p returnt a char.' )