summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorWessel Dankers <wsl@fruit.je>2021-11-15 19:36:57 +0100
committeravih <avih@users.noreply.github.com>2021-11-15 21:37:42 +0200
commitea05a4e2b4d17729ce614a5f5a1d71280c7dce22 (patch)
treea5bd1d8e0b750d8407c6f323e49e6f22fd4dec98 /debian
parent836df3589b47ab689411c3949cb699c8f2038914 (diff)
downloadmpv-build-ea05a4e2b4d17729ce614a5f5a1d71280c7dce22.tar.bz2
mpv-build-ea05a4e2b4d17729ce614a5f5a1d71280c7dce22.tar.xz
debian: disable LTO
Newer versions of Ubuntu (and future versions of Debian) enable LTO by default for package builds. This is apparently incompatible with how we compile mpv using static builds of ffmpeg and libass. Fixes https://github.com/mpv-player/mpv-build/issues/158 Further reading: - https://wiki.ubuntu.com/ToolChain/LTO - https://wiki.debian.org/ToolChain/LTO
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index 70adb9b..0d642a6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,6 @@
#! /usr/bin/make -f
-export DEB_BUILD_MAINT_OPTIONS:=hardening=+all
+export DEB_BUILD_MAINT_OPTIONS := hardening=+all optimize=-lto
# To enable parallel building:
# You can either set DEB_BUILD_OPTIONS=paralell=<num-procs> in your build environment