mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
Merge branch 'wip/smcv/cross-ld' into 'master'
Make ld executable configurable See merge request GNOME/glib!1209
This commit is contained in:
commit
4d65f32703
@ -95,6 +95,7 @@ c_link_args = ['-L${prefix_path}/lib64',
|
||||
c = '${toolchain_path}/bin/${CC}'
|
||||
cpp = '${toolchain_path}/bin/${CXX}'
|
||||
ar = '${toolchain_path}/bin/${AR}'
|
||||
ld = '${toolchain_path}/bin/${LD}'
|
||||
strip = '${toolchain_path}/bin/${STRIP}'
|
||||
pkgconfig = '${PKG_CONFIG}'
|
||||
EOM
|
||||
|
@ -12,6 +12,7 @@ c_link_args = []
|
||||
c = 'x86_64-w64-mingw32-gcc'
|
||||
cpp = 'x86_64-w64-mingw32-g++'
|
||||
ar = 'x86_64-w64-mingw32-ar'
|
||||
ld = 'x86_64-w64-mingw32-ld'
|
||||
objcopy = 'x86_64-w64-mingw32-objcopy'
|
||||
strip = 'x86_64-w64-mingw32-strip'
|
||||
pkgconfig = 'x86_64-w64-mingw32-pkg-config'
|
||||
|
@ -59,6 +59,7 @@ c_link_args = []
|
||||
c = 'x86_64-w64-mingw32-gcc'
|
||||
cpp = 'x86_64-w64-mingw32-g++'
|
||||
ar = 'x86_64-w64-mingw32-ar'
|
||||
ld = 'x86_64-w64-mingw32-ld'
|
||||
objcopy = 'x86_64-w64-mingw32-objcopy'
|
||||
strip = 'x86_64-w64-mingw32-strip'
|
||||
pkgconfig = 'x86_64-w64-mingw32-pkg-config'
|
||||
|
@ -586,8 +586,9 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
|
||||
# (https://reviews.llvm.org/D58234). FIXME: This test could be enabled for
|
||||
# LLVM once that support is in a stable release.
|
||||
objcopy = find_program('objcopy', required : false)
|
||||
ld = find_program('ld', required : false)
|
||||
|
||||
if build_machine.system() == 'linux' and cc.get_id() == 'gcc' and objcopy.found()
|
||||
if build_machine.system() == 'linux' and cc.get_id() == 'gcc' and objcopy.found() and ld.found()
|
||||
test_gresource_binary = custom_target('test5.gresource',
|
||||
input : 'test5.gresource.xml',
|
||||
output : 'test5.gresource',
|
||||
@ -616,7 +617,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
|
||||
test_resources_binary = custom_target('test_resources.o',
|
||||
input : test_gresource_binary,
|
||||
output : 'test_resources.o',
|
||||
command : ['ld',
|
||||
command : [ld,
|
||||
'-r',
|
||||
'-b','binary',
|
||||
'@INPUT@',
|
||||
|
Loading…
Reference in New Issue
Block a user