[tlbuild] Building wget without (too many) dependencies

Mojca Miklavec mojca.miklavec.lists at gmail.com
Tue Mar 17 13:44:35 CET 2015


Hi,

I know that we haven't been asked to try to build wget (yet), but now
that I was playing with the box, here's the complete list of arguments
that was needed to get rid of all "external" dependencies on Sparc
Solaris 10 (the command on tlbuild website was not sufficient):

../wget-1.16.3/configure --enable-ipv6 --disable-iri --disable-nls
--disable-ntlm --disable-pcre --without-libiconv-prefix
--without-libintl-prefix --without-libuuid --without-libpsl
--without-ssl --without-zlib

That is, I had to add the following commands to the list:
--disable-iri --disable-ntlm --disable-pcre --without-libpsl
--without-libuuid --without-libintl-prefix

Otherwise I ended up with:
    libiconv.so.2 =>         /opt/csw/lib/libiconv.so.2
    libicudata.so.54 =>      /opt/csw/lib/libicudata.so.54
    libicuuc.so.54 =>        /opt/csw/lib/sparcv8/libicuuc.so.54
    libidn.so.11 =>          /opt/csw/lib/libidn.so.11
    libintl.so.8 =>          /opt/csw/lib/libintl.so.8
    libnettle.so.4 =>        /opt/csw/lib/libnettle.so.4
    libpcre.so.1 =>          /opt/csw/lib/libpcre.so.1
    libpsl.so.0 =>           /opt/csw/lib/libpsl.so.0
    libuuid.so.1 =>          /opt/csw/lib/libuuid.so.1

(I also submitted a bug report about libiconv to
http://savannah.gnu.org/bugs/index.php?44559)

The resulting binary still wouldn't work on older machines:

> pvs src/wget
        libsocket.so.1 (SUNW_1.4);
        libnsl.so.1 (SUNW_1.7);
        librt.so.1 (SUNW_1.2);
        libc.so.1 (SUNW_1.22.7, SUNWprivate_1.1);

due to dependency on libc.so.1 version 1.22.7 which is only present
since Update 10, but I need to learn how to write the so called "map
files" to target earlier OSes.

Last year I compiled the binary on Solaris 9 with the native compiler
to avoid those dependencies. But hopefully the list of flags mentioned
above would suffice.

Karl, should that list of flags be mentioned on the website?

Mojca


More information about the tlbuild mailing list