On Wed, Apr 29, 2020 at 11:40:33AM +0100, Luca Boccassi wrote: > On Wed, 2020-04-29 at 11:08 +0100, Bruce Richardson wrote: > > When calling pkg-config --static --libs, pkg-config will always output the > > regular libs first, and then the extra libs from libraries.private field, > > since the assumption is that those are additional dependencies for building > > statically that the .a files depend upon. > > > > However, for DPDK, we only link the driver files for static builds, and > > those need to come *before* the regular libraries. To get this result, we > > need two pkgconfig files for DPDK, one for the shared libs, and a second > > for the static libs and drivers, which depends upon the first. Using a > > dependency means that the shared libs are printed only after the > > libraries.private field rather than before. > > A neat trick! Can we document that the new file is an implementation > detail for internal usage, and that it should not be referenced > directly? > I'm even pondering if it would be possible to install it in a private > directory, need to check if there's a way for Requires to specify > prefixes > That would be great, if there was a way to hide it. I also take it from your feedback that a package needing multiple .pc files is not an issue for debian packaging?
- Re: [dpdk-dev] [PATCH 6/7] build/pkg-config: improve... Thomas Monjalon
- Re: [dpdk-dev] [PATCH 6/7] build/pkg-config: imp... Bruce Richardson
- Re: [dpdk-dev] [PATCH 6/7] build/pkg-config:... Thomas Monjalon
- Re: [dpdk-dev] [PATCH 6/7] build/pkg-config: improve... Luca Boccassi
- Re: [dpdk-dev] [PATCH 6/7] build/pkg-config: imp... Bruce Richardson
- Re: [dpdk-dev] [PATCH 6/7] build/pkg-config:... Luca Boccassi
- [dpdk-dev] [PATCH 5/7] build/pkg-config: output driver li... Bruce Richardson
- Re: [dpdk-dev] [PATCH 5/7] build/pkg-config: output ... Thomas Monjalon
- Re: [dpdk-dev] [PATCH 5/7] build/pkg-config: out... Bruce Richardson
- Re: [dpdk-dev] [PATCH 5/7] build/pkg-config: output ... Luca Boccassi
- Re: [dpdk-dev] [PATCH 5/7] build/pkg-config: out... Bruce Richardson
- Re: [dpdk-dev] [PATCH 5/7] build/pkg-config:... Luca Boccassi
- [dpdk-dev] [PATCH 7/7] build/pkg-config: prevent overlink... Bruce Richardson
- Re: [dpdk-dev] [PATCH 7/7] build/pkg-config: prevent... Thomas Monjalon
- Re: [dpdk-dev] [PATCH 7/7] build/pkg-config: pre... Bruce Richardson
- [dpdk-dev] [PATCH v2 0/7] improve DPDK static builds with... Bruce Richardson
- [dpdk-dev] [PATCH v2 2/7] build: remove unnecessary ... Bruce Richardson
- [dpdk-dev] [PATCH v2 4/7] build: move pkg-config cre... Bruce Richardson
- [dpdk-dev] [PATCH v2 5/7] build/pkg-config: output d... Bruce Richardson
- [dpdk-dev] [PATCH v2 1/7] build: always link-whole D... Bruce Richardson
- [dpdk-dev] [PATCH v2 3/7] devtools/test-meson-builds... Bruce Richardson