a5d4ea5943
Any file with ABI versioned functions needs different macros for shared and static builds, so we need to accommodate that. Rather than building everything twice, we just flag to the build system which libraries need that handling, by setting use_function_versioning in the meson.build files. To ensure we don't get silent errors at build time due to this meson flag being missed, we add an explicit error to the function versioning header file if a known C macro is not defined. Since "make" builds always only build one of shared or static libraries, this define can be always set, and so is added to the global CFLAGS. For meson, the build flag - and therefore the C define - is set for the three libraries that need the function versioning: "distributor", "lpm" and "timer". Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org> Tested-by: Andrzej Ostruszka <amo@semihalf.com> Reviewed-by: Andrzej Ostruszka <amo@semihalf.com> |
||
---|---|---|
.. | ||
Makefile | ||
meson.build | ||
rte_lpm6.c | ||
rte_lpm6.h | ||
rte_lpm_altivec.h | ||
rte_lpm_neon.h | ||
rte_lpm_sse.h | ||
rte_lpm_version.map | ||
rte_lpm.c | ||
rte_lpm.h |