> -----Original Message----- > From: Bruce Richardson <[email protected]> > Sent: Wednesday, August 2, 2023 3:32 PM > To: [email protected] > Cc: Bruce Richardson <[email protected]>; Morten Brørup > <[email protected]>; Tyler Retzlaff > <[email protected]> > 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 <[email protected]> > Acked-by: Morten Brørup <[email protected]> > Acked-by: Tyler Retzlaff <[email protected]> > --- > 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 <[email protected]> Thanks, Ali

