diff options
author | Dan Yeaw <dan@yeaw.me> | 2023-04-07 15:22:11 +0000 |
---|---|---|
committer | Dan Yeaw <dan@yeaw.me> | 2023-04-07 15:22:11 +0000 |
commit | 50851e2706cf1cdb3c4c60e05db62118afc0c1f6 (patch) | |
tree | da9812141ceed2d6f0d8e05c0e57277fa51d4dd6 /gio | |
parent | adcf017eb482e9fdf4f278cb7c4bdd6c71ca7f87 (diff) | |
download | glib-50851e2706cf1cdb3c4c60e05db62118afc0c1f6.tar.gz |
Fix multiple definition error
Fixes #2966 when compiling with GCC < 9.1 or Clang < 14.0.
Diffstat (limited to 'gio')
-rw-r--r-- | gio/tests/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
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' |