Subject: Rare project developers
List archive
- From: mc36 <>
- To: Alexander Gall <>
- Cc: "" <>
- Subject: Re: [rare-dev] p4emu as a library
- Date: Mon, 30 May 2022 09:18:28 +0200
hi,
On 5/30/22 09:00, Alexander Gall wrote:
Hi
On Mon, 30 May 2022 08:42:59 +0200, mc36 <> said:
hi,
i recently added a new packet io flavor to the p4emu stuff... it's the 3rd
method in the family so i was
thinking about that it would reduce both compile and binary sizes if the
packet forwarding would become a
shared library... i started playing with the idea and came up with the
attached way of doing so: a shared
library _relatively_ linked to the main... i saw nothing special in the
environment variables, especially
about ld_(library)_path, but i'm writing to you if you're aware of any other
tricks that would make it
harder/impossible in a nix(os) environment?
It should not be a problem. Nix always uses rpath to set the search
path explicitly, so this would happen automatically anyway, i.e. Nix
will add the package's location in the Nix store
(/nix/store/<hash>-<name>/lib) to the RPATH (of test.bin in this case)
when it detects a dependeny to a library that is part of the package
itself.
sounds cool, thanks.... then i'll refactor the stuff...
br,
cs
- [rare-dev] p4emu as a library, mc36, 05/30/2022
- Re: [rare-dev] p4emu as a library, Alexander Gall, 05/30/2022
- Re: [rare-dev] p4emu as a library, mc36, 05/30/2022
- Re: [rare-dev] p4emu as a library, mc36, 05/30/2022
- Re: [rare-dev] p4emu as a library, Alexander Gall, 05/30/2022
- Re: [rare-dev] p4emu as a library, mc36, 05/30/2022
- Re: [rare-dev] p4emu as a library, Alexander Gall, 05/30/2022
- Re: [rare-dev] p4emu as a library, mc36, 05/30/2022
- Re: [rare-dev] p4emu as a library, mc36, 05/30/2022
- Re: [rare-dev] p4emu as a library, Alexander Gall, 05/30/2022
Archive powered by MHonArc 2.6.19.