Received: from magnesium.8pit.net (magnesium.8pit.net [45.76.88.171]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 33E5E782EA6 for <~alpine/devel@lists.alpinelinux.org>; Wed, 20 Jan 2021 19:29:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=opensmtpd; bh=IZdKJH/xDq rMgqYI2P1FRAJdrxO+SgICXHQ0MipgDhs=; h=in-reply-to:references:from: subject:to:date; d=soeren-tempel.net; b=AomSfF0Qo3NJkmzOPjUPyYJpHYBJXm igjRlwbPKc1QHQhJQGs+VVWZNsdNA09oDW2SY/Gkabn2ui7BQZ4bKICzg7BR/r1oXlXL3Y gJzN2ZBn/leVxSYigMxakrJYlCSkp6ko30Rvh0BZcfvKJ0YUwXkeaAT8V8brKtXXRg4Ovz U= Received: from localhost (p200300f5ff09fd009eba4d4e43a08140.dip0.t-ipconnect.de [2003:f5:ff09:fd00:9eba:4d4e:43a0:8140]) by magnesium.8pit.net (OpenSMTPD) with ESMTPSA id 0caba4f0 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:YES) for <~alpine/devel@lists.alpinelinux.org>; Wed, 20 Jan 2021 20:29:49 +0100 (CET) Date: Wed, 20 Jan 2021 20:29:44 +0100 To: ~alpine/devel@lists.alpinelinux.org Subject: Re: RFC on -static subpackages and being more static-linking friendly From: =?UTF-8?Q?S=C3=B6ren?= Tempel References: <20210119212733.11bcc69b@ncopa-desktop.lan> In-Reply-To: <20210119212733.11bcc69b@ncopa-desktop.lan> Message-Id: <3ABSHLGZFBV87.3CAQP0TW1HIKI@8pit.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Natanael Copa wrote: > My thinking is that we don't really support static linking for our own > packages. We should always use dynamic linking, with a few exceptions. > (like qemu user). But we can provide -static when requested and it does > not cost us much. I agree that we don't need to support static linking for our own packages. However, I think many people rely on us providing static libraries. I have seen quite a few Docker images using Alpine to build statically linked versions of OSS software. From the top of my head, the vis text editor uses Alpine for this purpose [1]. I also have quite a bit of software lying around which I link statically on Alpine in order to be able to use recent versions of it on ancient non-Alpine server systems (shells, text editors, =E2=80=A6). > I think we should use --disable-static as the default, and enable > static on request. We shouldn't use the static library ourselves (with > a few exceptions), but can make it available when someone asks for it. I think we should support static linking of packaged libraries for the use cases outlined above. Also consider that musl has some obvious advantage over glibc in regards to static linking, thereby making Alpine a very decent choice for these use cases. Greetings, S=C3=B6ren [1]: https://github.com/martanne/vis/blob/master/Dockerfile