Re: Success with Links browser port build.

"Greg A. Woods" <[email protected]> Thu, 11 Dec 2025 23:13:28 -0800
Newsgroups gmane.os.netbsd.ports.sparc
Organization Planix, Inc.
Message-ID <[email protected]>
At Thu, 11 Dec 2025 20:20:44 +0000 (UTC), Chase Rayfield <[email protected]> wrote:
Subject: Re: Success with Links browser port build.
>
> >Dillo should work too, and does not require GTK (it uses FLTK) and so
> >only depends on a "mere" 27 libraries. However the pkgsrc version is
> >way out of date.
>
> Might be due to it still depending on FLTK 1.3 but I guess it is
> usually statically linked anyway so not a big deal.

Ah ha!  I had though FLTK could probably could be static-linked, but by
default it has the "opengl" option enabled, and that then means it
requires MesaLib, which is built with meson, and for the life of me I
cannot figure out how to get meson to generate static libraries for
MesaLib as even when meson is when given "--default-library both", Meson
only builds shared libs!

However dillo doesn't end up using libfltk_gl (which is the only part
that uses MesaLib) so I've forced it to be static-linked and it works!

$ file /usr/pkg/bin/dillo
/usr/pkg/bin/dillo: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, for NetBSD 9.99.81, with debug_info, not stripped
$ size /usr/pkg/bin/dillo
   text    data     bss     dec     hex filename
4583254   40332 2238505 6862091  68b50b /usr/pkg/bin/dillo

That's way smaller than links-gui!

$ size /usr/pkg/bin/links
   text    data     bss     dec     hex filename
10711721         181212 2421393 13314326         cb2916 /usr/pkg/bin/links

--
					Greg A. Woods <[email protected]>

Kelowna, BC     +1 250 762-7675           RoboHack <[email protected]>
Planix, Inc. <[email protected]>     Avoncote Farms <[email protected]>
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRuK6dmwVAucmRxuh9mfXG3eL/0fwUCaTvAjwAKCRBmfXG3eL/0
fzBVAJ9ESZAIDeleZmakIe2sh+bCnE2I9gCeP45rd0rf2m6UjMRnZcQkH95zY9E=
=rLLS
-----END PGP SIGNATURE-----