Skip to Content.
Sympa Menu

rare-dev - Re: [rare-dev] p4emu as a library

Subject: Rare project developers

List archive

Re: [rare-dev] p4emu as a library


Chronological Thread 
  • From: Alexander Gall <>
  • To: <>
  • Cc: "" <>
  • Subject: Re: [rare-dev] p4emu as a library
  • Date: Mon, 30 May 2022 09:00:50 +0200

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.

--
Alex



Archive powered by MHonArc 2.6.19.

Top of Page