summaryrefslogtreecommitdiff
path: root/meson-cc-tests
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2021-02-23 11:36:24 +0000
committerTim-Philipp Müller <tim@centricular.com>2021-02-23 12:29:58 +0000
commite30259f6237571c61992433c110bc6e1ef900244 (patch)
treefe0cb239f38091c71be79822d675297bbadb6b6e /meson-cc-tests
parentd6c1787ac1a705f129f3d56b6058f02129535796 (diff)
downloadcairo-e30259f6237571c61992433c110bc6e1ef900244.tar.gz
cairo-trace: fix build with newer versions of bfd
And update configure/meson checks to check for the new function. Drop libiberty.h check since it's only needed by backtrace-symbols.c which we're about to remove. Closes #391, #460
Diffstat (limited to 'meson-cc-tests')
-rw-r--r--meson-cc-tests/bfd-section-flags.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/meson-cc-tests/bfd-section-flags.c b/meson-cc-tests/bfd-section-flags.c
new file mode 100644
index 000000000..b58118d06
--- /dev/null
+++ b/meson-cc-tests/bfd-section-flags.c
@@ -0,0 +1,9 @@
+#include <bfd.h>
+
+int
+f (asection *s)
+{
+ return bfd_section_flags(s) == 0;
+}
+
+int main (void) { return 0; }