Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Oct 2007 08:00:26 -0700
From:      Garrett Cooper <youshi10@u.washington.edu>
To:        Dmitry Marakasov <amdmi3@amdmi3.ru>
Cc:        ports@freebsd.org
Subject:   Re: Idea: static builds
Message-ID:  <4707A30A.1090101@u.washington.edu>
In-Reply-To: <20071004190304.GA9491@hades.panopticon>
References:  <20071004190304.GA9491@hades.panopticon>

next in thread | previous in thread | raw e-mail | index | archive | help
Dmitry Marakasov wrote:
> Hi!
>
> I just have an idea that may be useful: static port builds. This can
> help produce packages without any depends, which may be useful
> sometimes.
>
> Implementation seem pretty straightfoward to me:
> - Introduce STATIC_BUILD variable that changes usual build behavior
> - Process LIB_DEPENDS in a different way: check .a instead of .so.*, and
> fail if .a is missing, and .so is present (i.e. needed static lib is not
> available at all), don't add library ports to package depends
> - Add -static to CFLAGS/CXXFLAGS
>
> Any comments? I will try to experiment with this for now.
>
>   
    This will bloat binaries by a large degree.
    However, it's nice for some cases (such as bash), where static would 
allow bash to function in single user mode, unless /usr/local/bin wasn't 
mountable.
-Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4707A30A.1090101>