commit:     3f350748216259e2f4e5b97fe3516e28cabbc182
Author:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  7 18:54:46 2020 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Mon Sep  7 18:54:46 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f350748

media-sound/ardour: added gold linker warning to 6.2-r1

Bug: https://bugs.gentoo.org/733972
Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 media-sound/ardour/ardour-6.2-r1.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/media-sound/ardour/ardour-6.2-r1.ebuild 
b/media-sound/ardour/ardour-6.2-r1.ebuild
index 97893a719d6..97e4502ac21 100644
--- a/media-sound/ardour/ardour-6.2-r1.ebuild
+++ b/media-sound/ardour/ardour-6.2-r1.ebuild
@@ -74,6 +74,11 @@ PATCHES=(
        "${FILESDIR}/${P}-use-signed-int-for-atomic-operations.patch"
 )
 
+pkg_pretend() {
+       [[ $(tc-getLD) == *gold* ]] && (has_version sci-libs/fftw[openmp] || 
has_version sci-libs/fftw[threads]) && \
+               ewarn "Linking with gold linker might produce broken 
executable, see bug #733972"
+}
+
 pkg_setup() {
        if has_version \>=dev-libs/libsigc++-2.6 ; then
                append-cxxflags -std=c++11

Reply via email to