From 0c989ac8f4f7241a3a8cbd3c04c8c3e7a1de33eb Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 29 Oct 2025 15:24:40 +0100 Subject: Build for arch with some of the CXXFLAGS that the packaging seems to end up using. --- cscript | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cscript b/cscript index b3be15a58..dbc9d5efd 100644 --- a/cscript +++ b/cscript @@ -696,6 +696,10 @@ def build(target, options, for_package): if target.platform == 'linux' and target.distro == 'arch': # We're using a special pinned distro FFmpeg on Arch, and this is necessary to find it target.append_with_colon('PKG_CONFIG_PATH', '/usr/lib/ffmpeg4.4/pkgconfig') + target.append_with_space('CXXFLAGS', '-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions ' + '-Wp,-D_FORTIFY_SOURCE=3 -Wformat -fstack-clash-protection ' + '-fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + '-Wp,-D_GLIBCXX_ASSERTIONS -g -flto=auto') target.command('./waf configure --prefix=%s %s' % (target.directory, configure_options(target, options, for_package))) target.command('./waf') target.command('./waf install') -- cgit v1.2.3