Received: from wolfsden.cz (wolfsden.cz [37.205.8.62]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 405407818AF for <~alpine/users@lists.alpinelinux.org>; Wed, 25 Nov 2020 12:34:37 +0000 (UTC) Received: by wolfsden.cz (Postfix, from userid 110) id F111125D70F; Wed, 25 Nov 2020 12:34:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on wolfsden X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id 1ED8225CFCC; Wed, 25 Nov 2020 12:34:32 +0000 (UTC) Date: Wed, 25 Nov 2020 13:34:31 +0100 From: Wolf To: Joost Nieuwenhuijse Cc: ~alpine/users@lists.alpinelinux.org Subject: Re: Building static libraries Message-ID: <20201125123431.jjweawhad6zxmwah@wolfsden.cz> References: <25b8e8d9-5ad5-a03d-8cf6-d3055ebc1d98@newhouse.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="auvno6tp4xiosogt" Content-Disposition: inline In-Reply-To: <25b8e8d9-5ad5-a03d-8cf6-d3055ebc1d98@newhouse.nl> --auvno6tp4xiosogt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On 2020-11-19 23:12:27 +0100, Joost Nieuwenhuijse wrote: > I guess this means I'll have to compile a static GTK3 and other libraries > myself, including all their dependencies, which is quite a job. I stumbled > upon this though: >=20 > https://github.com/alpinelinux/aports/blob/master/main/gtk%2B3.0/APKBUILD >=20 > So I'm wondering if there's an easy way to build these static libs by > modifying the APKBUILD file, instead of reinventing the wheel. Any hints > would most welcome. If you take a look at community/jsoncpp/APKBUILD, you can see that it builds both. So I assume adding --default-library=3Dboth to the abuild-meson invocation and adding the -static subpackage should suffice? Not sure completely, but I think it should be on the right track. W. --=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --auvno6tp4xiosogt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE7BIrb0FxyZaks1p7hTP5S2N55TgFAl++T1cACgkQhTP5S2N5 5TgdEBAAlqErtDzSBGaHL0h9bmaeP/KMMgDHgEzGsxr/ZHsoBc42ntRmK1UJv/iw g2LKQKEIIN04e6oiR0P2xEh31KWHseaVD/uQKWiuACO3YGXvpOgpOIO6BPkY6R4a /MjjP2kspE1xQ/H9qCBjbXoAKneT8Lg6jyT/qSscWqdo2aiY1yOcHjkZYTZaAZK7 A7jODW/5WGjlDwzseSJeW6IQ1A1NW9DvAwrDRtFPSkN5N4MmHNJHPW5vh/AlXOIf LQKZaHjWECEF5f2vsESla6OGMAAcnamGu/tD5hIUzt526PtczXIVvqcf/x5BK/wF M9LxuRVH5KjE0HIY6+vD24eczKANeeU1Z7RjEM1+yYihpFv0PXPq1DxS4ocR5wS2 UOAWW9UXr+luPyij7XmgCMNv4WXQSVJSmvMcWzdg74eT15H4NxQ7o7G6HgJJ+pz5 t7QWxRzl0znKbwhE4Hjo0XHRiZGfYL6F3tqQiOgsrR/begAwXa37OIA237ufIKVD zhx56ZNA+aJxLZLmxh4BHIQ/vMY0aW9fCFO1aARIyV/WbsHDj08uzQEWEo7UIPZL spoWBcV1aMSdHbiRiIRowo6VsgJr4a2ex9edZDPRV/t6ovuLgUnYtVB06flLQqhg RMoMYRuVRq9aVSxnkWd7ierQSa+tugJSP5PHLlWyceHnGR3k+kQ= =+Vbz -----END PGP SIGNATURE----- --auvno6tp4xiosogt--