From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1492366-garchives=archives.gentoo.org@lists.gentoo.org> 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 ADC6E158030 for <garchives@archives.gentoo.org>; Fri, 3 Mar 2023 22:22:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EF1F8E07AE; Fri, 3 Mar 2023 22:22:29 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 D5F43E07AE for <gentoo-commits@lists.gentoo.org>; Fri, 3 Mar 2023 22:22:29 +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 E067B335D55 for <gentoo-commits@lists.gentoo.org>; Fri, 3 Mar 2023 22:22:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 366EC8B6 for <gentoo-commits@lists.gentoo.org>; Fri, 3 Mar 2023 22:22:27 +0000 (UTC) From: "Sam James" <sam@gentoo.org> 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" <sam@gentoo.org> Message-ID: <1677881717.ec0857c1f4b448861a54ad185c79528c070776e2.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/features/llvm/ X-VCS-Repository: repo/gentoo X-VCS-Files: profiles/features/llvm/package.use X-VCS-Directories: profiles/features/llvm/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: ec0857c1f4b448861a54ad185c79528c070776e2 X-VCS-Branch: master Date: Fri, 3 Mar 2023 22:22:27 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0ef77d53-5b67-449f-a04f-ab0af65377c4 X-Archives-Hash: 6f3ac845f48c6911cfec1f743090595c commit: ec0857c1f4b448861a54ad185c79528c070776e2 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Fri Mar 3 22:15:03 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Mar 3 22:15:17 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec0857c1 profiles/features/llvm: default sys-libs/llvm-libunwind[static-libs] on Without this, statically linking even a basic example fails because we're using llvm-libunwind rather than GCC's internals. Quoting myself on the bug: """ FWIW the LLVM/Clang profiles are considered pretty experimental still. For Clang, it's tricky because it depends on configuration and the (default) flags passed. Ionen points out it should be harmless dep-wise (non-invasive to users, no need to then enable static-libs for its deps) to default to +static-libs on llvm-libunwind, which would cover most cases here. I think that generally makes sense. I see three options: 1. Adding IUSE=llvm-libunwind to virtual/libc 2. Defaulting on (which doesn't feel like a full solution alone) +static-libs in llvm-libunwind 3. Making clang-common[default-compiler-rt] depend on libunwind[static-libs] (or correspondingly llvm-libunwind[static-libs] if USE=llvm-libunwind) I think 2+3 is probably a good fit? """ Bug: https://bugs.gentoo.org/892956 Signed-off-by: Sam James <sam <AT> gentoo.org> profiles/features/llvm/package.use | 3 +++ 1 file changed, 3 insertions(+) diff --git a/profiles/features/llvm/package.use b/profiles/features/llvm/package.use index 5e1bbab42414..e878f28f7454 100644 --- a/profiles/features/llvm/package.use +++ b/profiles/features/llvm/package.use @@ -1,3 +1,6 @@ +# Make static linking work by default for simple binaries (bug #892956) +sys-libs/llvm-libunwind static-libs + # use lld by default sys-devel/llvm -binutils-plugin