unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: Zhu Zihao <all_but_last@163.com>, Guix Devel <guix-devel@gnu.org>
Subject: Re: [RFC] Use LLVM_BUILD_LLVM_DYLIB instead of BUILD_SHARED_LIBS
Date: Fri, 26 Aug 2022 20:24:05 +0200	[thread overview]
Message-ID: <de678ff6-fe18-1520-bae5-37c094b57c02@telenet.be> (raw)
In-Reply-To: <867d33tpui.fsf@163.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 1194 bytes --]


On 20-04-2022 12:56, Zhu Zihao wrote:
> We may introduce following problems if we apply this solution.
>
> 1. Increase the closure size of LLVM.
>
> By default, if LLVM_BUILD_LLVM_DYLIB is set true, LLVM still tries to
> build the static archive. This may increase the closure size of LLVM.
> And some package linking with LLVM may use the static archive instead of
> linking to the dynamic library.
>
> My opinion: If we're OK with the bigger closure size, that's not a
> problem. If not, we may consider disable the static archive generation.
> For LLVM components, we can use `LLVM_LINK_LLVM_DYLIB` to ask these
> packages to link with the shared version. For package use `llvm-config`
> directly or indirectly, we can pass `--link-shared` to it.

IIUC, this causes the static libraries to be built, right?

If so, they could be moved into a separate output.

I would prefer to disable static libraries, those cause problems with 
grafts and size usage. If not possible, I would prefer them to be in a 
separate output, to avoid them being used by accident and to reduce the 
closure size of dependents of LLVM that use the shared version.

Greetings,
Maxime.


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

  parent reply	other threads:[~2022-08-26 18:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-20 10:56 [RFC] Use LLVM_BUILD_LLVM_DYLIB instead of BUILD_SHARED_LIBS Zhu Zihao
2022-08-23  3:57 ` Maxim Cournoyer
2022-08-26 17:40   ` John Kehayias
2022-08-26 18:24 ` Maxime Devos [this message]
2022-09-13  2:57   ` Maxim Cournoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=de678ff6-fe18-1520-bae5-37c094b57c02@telenet.be \
    --to=maximedevos@telenet.be \
    --cc=all_but_last@163.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).