Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Effectiveness of --disable-dynamic-nss?



On Thu, Nov 6, 2014 at 5:17 PM, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Nov 6,  3:11pm, Mikael Magnusson wrote:
> }
> } Someone was mentioning on the #zsh channel that $USERNAME was empty
> } when they compiled statically and I vaguely remembered glibc doesn't
> } support name lookup statically
>
> I build a fully-static zsh all the time and have never had a problem
> with USERNAME not being set.  Is this platform-specific, or is the
> "when they compiled statically" specific to dynamic-nss ?

Well, they said they tried on both debian and gentoo, and that it
seemed disable-dynamic-nss was used on the debian build but not in the
gentoo build. I'm not sure if that's 100% trustworthy though. The
gentoo ebuild specifies only --disable-dynamic but also adds -static
to ldflags manually. They found this semi-old gentoo bugzilla entry
about it as well, https://bugs.gentoo.org/show_bug.cgi?id=412301 but
it's not very informative.

[I tried to test this locally, but I don't have a static ncurses
installed, which causes the test for boolcodes to return negative
failing to link, which in turn causes a double declaration compilation
failure.]

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author