numam-dpdk/lib/librte_timer
Bruce Richardson a5d4ea5943 build: support building ABI versioned files twice
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>
2019-10-27 12:49:28 +01:00
..
Makefile timer: allow management in shared memory 2019-04-17 20:05:20 +02:00
meson.build build: support building ABI versioned files twice 2019-10-27 12:49:28 +01:00
rte_timer_version.map timer: add function to stop all timers in a list 2019-04-17 20:05:30 +02:00
rte_timer.c eal: split compat header file 2019-10-27 12:49:28 +01:00
rte_timer.h timer: fix resource leak in finalize 2019-07-06 10:32:40 +02:00