On Fri, Feb 26, 2021 at 10:40:32AM +0100, Thomas Monjalon wrote: > 26/02/2021 10:08, Bruce Richardson: > > On Thu, Feb 25, 2021 at 07:22:37PM +0100, Thomas Monjalon wrote: > > > There was an intent to define _GNU_SOURCE globally, > > > but it was not set in pkg-config for external applications. > > > > > Is this something that we really want to do, to force all external apps to > > use _GNU_SOURCE when compiling? Do some of our header files rely on > > definitions only available with _GNU_SOURCE? If so, we should probably look > > to remove that dependency rather than mandating the define. > > From patch 5: > In musl libc, cpu_set_t is defined only if _GNU_SOURCE is defined. > > If we avoid mandating _GNU_SOURCE, > we must #ifdef functions relying on rte_cpuset_t in the headers: > - rte_lcore_cpuset > - rte_thread_set_affinity > - rte_thread_get_affinity > - rte_telemetry_init (internal) > Or a different trick in linux/include/rte_os.h could be: > typedef void rte_cpuset_t; > so it allows including files, but not using above functions of course. > Can we just define _GNU_SOURCE in the header file with rte_cpuset_t?
- [dpdk-dev] [PATCH v5 00/17] Alpine/musl build support Thomas Monjalon
- [dpdk-dev] [PATCH v5 01/17] eal: fix comment of OS-s... Thomas Monjalon
- [dpdk-dev] [PATCH v5 02/17] buildtools: fix build wi... Thomas Monjalon
- Re: [dpdk-dev] [PATCH v5 02/17] buildtools: fix ... Bruce Richardson
- [dpdk-dev] [PATCH v5 03/17] build: detect execinfo l... Thomas Monjalon
- Re: [dpdk-dev] [PATCH v5 03/17] build: detect ex... Bruce Richardson
- [dpdk-dev] [PATCH v5 04/17] build: define _GNU_SOURC... Thomas Monjalon
- Re: [dpdk-dev] [PATCH v5 04/17] build: define _G... Bruce Richardson
- Re: [dpdk-dev] [PATCH v5 04/17] build: defin... Thomas Monjalon
- Re: [dpdk-dev] [PATCH v5 04/17] build: d... Bruce Richardson
- Re: [dpdk-dev] [PATCH v5 04/17] bui... Thomas Monjalon
- Re: [dpdk-dev] [PATCH v5 04/17]... Thomas Monjalon
- [dpdk-dev] [PATCH v5 05/17] eal/linux: fix build wit... Thomas Monjalon
- [dpdk-dev] [PATCH v5 06/17] drivers: fix header incl... Thomas Monjalon
- [dpdk-dev] [PATCH v5 07/17] drivers: replace page si... Thomas Monjalon
- [dpdk-dev] [PATCH v5 08/17] bus/pci: support I/O por... Thomas Monjalon
- [dpdk-dev] [PATCH v5 09/17] bus/dpaa: fix 64-bit arc... Thomas Monjalon
- [dpdk-dev] [PATCH v5 10/17] bus/dpaa: fix build with... Thomas Monjalon
- [dpdk-dev] [PATCH v5 11/17] common/dpaax/caamflib: f... Thomas Monjalon
- [dpdk-dev] [PATCH v5 15/17] vdpa/mlx5: replace pthre... Thomas Monjalon