From 50851e2706cf1cdb3c4c60e05db62118afc0c1f6 Mon Sep 17 00:00:00 2001 From: Dan Yeaw Date: Fri, 7 Apr 2023 15:22:11 +0000 Subject: [PATCH] Fix multiple definition error Fixes #2966 when compiling with GCC < 9.1 or Clang < 14.0. --- gio/tests/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/tests/meson.build b/gio/tests/meson.build index b4a64926e..2631b1285 100644 --- a/gio/tests/meson.build +++ b/gio/tests/meson.build @@ -929,7 +929,7 @@ if not meson.is_cross_build() input : test_gresource_binary, output : 'test_resources.o', command : cc.cmd_array() + ['-Wl,-z,noexecstack', '-r', '-Wl,-b,binary', - '@INPUT@', '-o','@OUTPUT@']) + '-nostdlib', '@INPUT@', '-o','@OUTPUT@']) # Rename symbol to match the one in the C file if cc.get_id() == 'gcc' and host_system == 'windows'