X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=mk%2Ftarget%2Fgeneric%2Frte.vars.mk;h=374722173d162dd02736a64f48ed73c81abbf5db;hb=5b2b9236aacc5d4fcc4e950177ce5f4d32780c46;hp=5f00a0bfaf9eee178e6f208d37b8370fea3cf9bc;hpb=28188cee2aa0b72d401d3e56942d0db9c7b9e654;p=dpdk.git diff --git a/mk/target/generic/rte.vars.mk b/mk/target/generic/rte.vars.mk index 5f00a0bfaf..374722173d 100644 --- a/mk/target/generic/rte.vars.mk +++ b/mk/target/generic/rte.vars.mk @@ -90,6 +90,14 @@ ASFLAGS += $(TARGET_ASFLAGS) CFLAGS += -I$(RTE_OUTPUT)/include LDFLAGS += -L$(RTE_OUTPUT)/lib +# add in flag for supporting function versioning. The define is used in meson +# builds to ensure that the user has properly flagged the unit in question as +# using function versioning so it can be built twice - once for static lib and +# then a second time for the shared lib. Since make only builds one library +# type at a time, such precautions aren't necessary, so we can globally define +# the flag +CFLAGS += -DRTE_USE_FUNCTION_VERSIONING + # always include rte_config.h: the one in $(RTE_OUTPUT)/include is # the configuration of SDK when $(BUILDING_RTE_SDK) is true, or the # configuration of the application if $(BUILDING_RTE_SDK) is not