]> git.droids-corp.org - dpdk.git/blobdiff - examples/l2fwd/Makefile
examples/l2fwd: fix build warning with system wide install
[dpdk.git] / examples / l2fwd / Makefile
index 59b2b4ab4ac2c19920157614bd36970d2324f4e2..9c506844ea3d0fcc8fc91f8c4acaf25c9888870d 100644 (file)
@@ -21,6 +21,8 @@ PKGCONF=pkg-config --define-prefix
 
 PC_FILE := $(shell $(PKGCONF) --path libdpdk)
 CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)
+# Add flag to allow experimental API as l2fwd uses rte_ethdev_set_ptype API
+CFLAGS += -DALLOW_EXPERIMENTAL_API
 LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)