tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Possible slight speedup to non-interactive /bin/sh startup
On Mon, Feb 11, 2019 at 09:36:57AM +0700, Robert Elz wrote:
> 1. it needs a way to find out what the correct name for the libedit
> shared library to use is, from the build system, other Makefiles,
> or something (it currently just has "libedit.so.3" embedded in it,
> with no path, and simply knowing what major version is current.)
Just drop the version and ignore the path. There should be a proper symlink
for "libedit.so" that does all what you want.
> 2. it needs a way to turn itself off when building /rescue/sh - that
> builds OK as it is, and /rescue/sh runs, but (kind of obviously) is
> unable to dynamically link the library into the static binary. That
> one needs to build the old way (this is just an #ifdef in the code).
Make the makefile define that depending on LDSTATIC being defined/empty?
That would also cover the MKDYNAMICROOT=no case (I think).
Martin
Home |
Main Index |
Thread Index |
Old Index