From 282aab5c38c2454d598f6eb70b21192a00bace71 Mon Sep 17 00:00:00 2001 From: BtbN Date: Sun, 25 Apr 2021 21:55:59 +0200 Subject: [PATCH] Duplicate ldflags into cross.meson For some reason, meson ignores LDFLAGS when cross compiling, so those need to be duplicated here... --- images/base-win32/cross.meson | 4 ++-- images/base-win64/cross.meson | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/images/base-win32/cross.meson b/images/base-win32/cross.meson index ed4dc21..453b603 100644 --- a/images/base-win32/cross.meson +++ b/images/base-win32/cross.meson @@ -7,8 +7,8 @@ windres = 'i686-w64-mingw32-windres' exe_wrapper = ['wine'] [properties] -c_link_args = ['-static-libgcc'] -cpp_link_args = ['-static-libgcc', '-static-libstdc++'] +c_link_args = ['-static-libgcc', '-L/opt/ffbuild/lib', '-O2', '-pipe', '-fstack-protector-strong'] +cpp_link_args = ['-static-libgcc', '-static-libstdc++', '-L/opt/ffbuild/lib', '-O2', '-pipe', '-fstack-protector-strong'] needs_exe_wrapper = true [host_machine] diff --git a/images/base-win64/cross.meson b/images/base-win64/cross.meson index e4a560b..7d596bd 100644 --- a/images/base-win64/cross.meson +++ b/images/base-win64/cross.meson @@ -7,8 +7,8 @@ windres = 'x86_64-w64-mingw32-windres' exe_wrapper = ['wine'] [properties] -c_link_args = ['-static-libgcc'] -cpp_link_args = ['-static-libgcc', '-static-libstdc++'] +c_link_args = ['-static-libgcc', '-L/opt/ffbuild/lib', '-O2', '-pipe', '-fstack-protector-strong'] +cpp_link_args = ['-static-libgcc', '-static-libstdc++', '-L/opt/ffbuild/lib', '-O2', '-pipe', '-fstack-protector-strong'] needs_exe_wrapper = true [host_machine]