tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg-config difference when run in pkgsrc vs normal run?
On Mon, Jul 08, 2024 at 12:17:13PM +0200, Jörg Sonnenberger wrote:
> On Sunday, July 7, 2024 1:19:14?AM GMT+2 Andrew Randrianasulu wrote:
> > Another part of our unportability related to way we use /proc for getting
> > our own executable name/path. Is there more portable way to do so?
>
> The first question is always, why would you want to know that.
If this is to get at the binary resource linked into your executable,
an alternative may be to play with linker scripts and use dlsym(NULL,...)
to find them (if they are loadable and have a symbol marking their start
and end).
Martin
Home |
Main Index |
Thread Index |
Old Index