> -----Original Message----- > From: Bruce Richardson <bruce.richard...@intel.com> > Sent: Wednesday, August 2, 2023 3:32 PM > To: dev@dpdk.org > Cc: Bruce Richardson <bruce.richard...@intel.com>; Morten Brørup > <m...@smartsharesystems.com>; Tyler Retzlaff > <roret...@linux.microsoft.com> > Subject: [PATCH v5] build: update DPDK to use C11 standard > > As previously announced, DPDK 23.11 will require a C11 supporting > compiler and will use the C11 standard in all builds. > > Forcing use of the C standard, rather than the standard with > GNU extensions, means that some posix definitions which are not in > the C standard are unavailable by default. We fix this by ensuring > the correct defines or cflags are passed to the components that > need them. > > Signed-off-by: Bruce Richardson <bruce.richard...@intel.com> > Acked-by: Morten Brørup <m...@smartsharesystems.com> > Acked-by: Tyler Retzlaff <roret...@linux.microsoft.com> > --- > V5: > * Fix build issues with bool type in altivec code, due to bool type > being in C11. Use __bool for altivec-specific version instead. > > V4: > * pass cflags to the structure and definition checks in mlx* drivers > to ensure posix definitions - as well as C-standard ones - are > available. > > V3: > * remove (now unneeded) use of -std=gnu99 in failsafe net driver. > > V2: > * Resubmit now that 23.11-rc0 patch applied > * Add _POSIX_C_SOURCE macro to eal_common_errno.c to get POSIX > definition of strerror_r() with c11 standard. > > ---
Tested-by: Ali Alnubani <alia...@nvidia.com> Thanks, Ali