From 7a7784a309ca9a1999e7eb95b9a603e8d41a5bb0 Mon Sep 17 00:00:00 2001 From: Tim Biermann Date: Sun, 7 Apr 2024 21:15:41 +0200 Subject: [PATCH] ffmpeg: set compilerflags for lto --- ffmpeg/.signature | 4 ++-- ffmpeg/Pkgfile | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ffmpeg/.signature b/ffmpeg/.signature index 2efb3349a..1080245c5 100644 --- a/ffmpeg/.signature +++ b/ffmpeg/.signature @@ -1,6 +1,6 @@ untrusted comment: verify with /etc/ports/opt.pub -RWSE3ohX2g5d/UkPVvvcmyNdRM1sOzkmA5oV3ZIw+afxdpvUlnPU4aJ5IZPPPu5bQ/ffEBu5zeD2tWxqQQGW/aVFljSI6ADpkAM= -SHA256 (Pkgfile) = 61f9356cb9b59df6c14a5aed9ac703789c985c0d8167981c2e7fb4229c41b6e0 +RWSE3ohX2g5d/RJz1+mTG5p7rjW16wOUzRnBeajZ6qy8xFhrqJ6jDOrOoSzYZL662Jg3n1iIW9gCMfTw1PIn7F8aHWRe5at0yQ8= +SHA256 (Pkgfile) = 6ca83ca426394c3fb489205ec43c9160a7feee021df4f619d8f2f5f6654fd437 SHA256 (.footprint) = b1e690d6bd3ac029cdf1c7a618e537405ea5e75ba964249d118f26d9a4d7abca SHA256 (ffmpeg-6.1.1.tar.bz2) = 5e3133939a61ef64ac9b47ffd29a5ea6e337a4023ef0ad972094b4da844e3a20 SHA256 (add-av_stream_get_first_dts-for-chromium.patch) = 57e26caced5a1382cb639235f9555fc50e45e7bf8333f7c9ae3d49b3241d3f77 diff --git a/ffmpeg/Pkgfile b/ffmpeg/Pkgfile index 917f5a801..748a9b061 100644 --- a/ffmpeg/Pkgfile +++ b/ffmpeg/Pkgfile @@ -6,7 +6,7 @@ name=ffmpeg version=6.1.1 -release=2 +release=3 source=(https://ffmpeg.org/releases/$name-$version.tar.bz2 add-av_stream_get_first_dts-for-chromium.patch fef22c87ada4517441701e6e61e062c9f4399c8e.patch @@ -76,6 +76,9 @@ build() { sed -i -e '/check_cflags -fdiagnostics-color=auto/d' configure + export CFLAGS="$CFLAGS -ffat-lto-objects" + export CXXFLAGS="$CXXFLAGS -ffat-lto-objects" + ./configure ${PKGMK_FFMPEG} \ --prefix=/usr \ --optflags="$CFLAGS" \