From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 958AD15803E for ; Sat, 6 Jan 2024 07:21:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 69B112BC017; Sat, 6 Jan 2024 07:21:57 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 485072BC017 for ; Sat, 6 Jan 2024 07:21:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 38FBA34313E for ; Sat, 6 Jan 2024 07:21:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9C9AC13A0 for ; Sat, 6 Jan 2024 07:21:54 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1704525688.7d7e14a04b5f885578676e5d58e30a14628e6d38.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/hip/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/hip/hip-6.0.0.ebuild X-VCS-Directories: dev-util/hip/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 7d7e14a04b5f885578676e5d58e30a14628e6d38 X-VCS-Branch: master Date: Sat, 6 Jan 2024 07:21:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c7961215-20a7-490e-9394-aa78432792c3 X-Archives-Hash: d1129090926b1237e42eaaeafbe5a8f7 commit: 7d7e14a04b5f885578676e5d58e30a14628e6d38 Author: Sam James gentoo org> AuthorDate: Sat Jan 6 07:21:04 2024 +0000 Commit: Sam James gentoo org> CommitDate: Sat Jan 6 07:21:28 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d7e14a0 dev-util/hip: apply undefined-version if linker supports it Signed-off-by: Sam James gentoo.org> dev-util/hip/hip-6.0.0.ebuild | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/dev-util/hip/hip-6.0.0.ebuild b/dev-util/hip/hip-6.0.0.ebuild index 40efa9317ab4..a2bd451fae26 100644 --- a/dev-util/hip/hip-6.0.0.ebuild +++ b/dev-util/hip/hip-6.0.0.ebuild @@ -7,7 +7,7 @@ DOCS_BUILDER="doxygen" DOCS_DEPEND="media-gfx/graphviz" ROCM_SKIP_GLOBALS=1 -inherit cmake docs llvm rocm +inherit cmake docs flag-o-matic llvm rocm LLVM_MAX_SLOT=17 @@ -83,13 +83,7 @@ src_configure() { # Fix ld.lld linker error: https://github.com/ROCm/HIP/issues/3382 # See also: https://github.com/gentoo/gentoo/pull/29097 - - # ideally we want !tc-ld-is-bfd for best future-proofing, but it needs - # https://github.com/gentoo/gentoo/pull/28355 - # mold needs this too but right now tc-ld-is-mold is also not available - if tc-ld-is-lld; then - append-ldflags -Wl,--undefined-version - fi + append-ldflags $(tc-flags-CCLD -Wl,--undefined-version) local mycmakeargs=( -DCMAKE_PREFIX_PATH="$(get_llvm_prefix "${LLVM_MAX_SLOT}")"