diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-10-29 15:24:40 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-10-30 00:25:42 +0100 |
| commit | 0c989ac8f4f7241a3a8cbd3c04c8c3e7a1de33eb (patch) | |
| tree | 4e18a7bb612a51ff4e740b145cba5d3be83835ae | |
| parent | 5559fa5fe25081c348463aeabc0ea0557fea38bc (diff) | |
Build for arch with some of the CXXFLAGS that the packaging seems to end up using.
| -rw-r--r-- | cscript | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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') |
