mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-28 02:20:04 +01:00
Merge branch 'backport-2364-freebsd-objcopy-glib-2-70' into 'glib-2-70'
Backport !2364 “tests: Allow `objcopy --help` to fail, because it fails on FreeBSD” to glib-2-70 See merge request GNOME/glib!2366
This commit is contained in:
commit
12b613b582
@ -683,7 +683,14 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
|
|||||||
objcopy_supports_add_symbol = false
|
objcopy_supports_add_symbol = false
|
||||||
objcopy = find_program('objcopy', required : false)
|
objcopy = find_program('objcopy', required : false)
|
||||||
if objcopy.found()
|
if objcopy.found()
|
||||||
objcopy_supports_add_symbol = run_command(objcopy, '--help', check: true).stdout().contains('--add-symbol')
|
# FIXME: This should be `check: true` because we never really expect
|
||||||
|
# `objcopy --help` to fail, given that `objcopy` exists. However, it does
|
||||||
|
# fail on FreeBSD because ELF Tool Chain has
|
||||||
|
# [a bug](https://sourceforge.net/p/elftoolchain/code/3950/).
|
||||||
|
# This can be changed back to `check: true` once our CI uses a FreeBSD
|
||||||
|
# version which includes the fix.
|
||||||
|
# See https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2360#note_1318608
|
||||||
|
objcopy_supports_add_symbol = run_command(objcopy, '--help', check: false).stdout().contains('--add-symbol')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ld = find_program('ld', required : false)
|
ld = find_program('ld', required : false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user