Received: from mail2.ptgui.com (mail2.ptgui.com [52.213.230.40]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id D2F53782B95 for <~alpine/users@lists.alpinelinux.org>; Thu, 19 Nov 2020 22:12:30 +0000 (UTC) From: Joost Nieuwenhuijse DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=newhouse.nl; s=202007; t=1605823950; bh=qnCgkbg6Ob9efdECNxzdIr3yR31htoPftNXCxn5DLvw=; h=From:Subject:To:Date:From; b=q8++l0vfyj2d+5G3YsY3d6xH0WsWPS7eY3Qt5tVGq5Ry7bhhANHZLSzx7iBOytV1g HeBBWINgqTVvHorUlh19a81enDU8sqdyMKoX6VZwP1TtuY2cddqx7zvHFv13DLPyWF WdOFl2/ubSqFnUXoY5Cz9UD3gsqvNBJq5Ouyq37A= Subject: Building static libraries To: ~alpine/users@lists.alpinelinux.org Message-ID: <25b8e8d9-5ad5-a03d-8cf6-d3055ebc1d98@newhouse.nl> Date: Thu, 19 Nov 2020 23:12:27 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Hi, I'm trying to build a completely statically linked application using gcc under Alpine. My application (PTGui) depends on GTK3 and a number of other libraries. I've noticed that for some libraries Alpine is providing a xx-static package, containing the .a file. But for GTK3 and others this doesn't seem to exist. 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: https://github.com/alpinelinux/aports/blob/master/main/gtk%2B3.0/APKBUILD 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. Thanks, Joost Nieuwenhuijse