Order pkgconfig includes with arch-specific first 81/7481/1
authorLuca Boccassi <luca.boccassi@gmail.com>
Thu, 6 Jul 2017 18:02:11 +0000 (19:02 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 7 Jul 2017 10:48:01 +0000 (11:48 +0100)
To make sure that the proper architecture-specific headers are
used in a multiarch environment, make pkg-config flag list the
arch-specific include directory first so that the compilers will
pick the headers from there in case of ambiguity.

Change-Id: If3f5f9fee439029129695273183faf72c5ca5798
Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
debian/libdpdk.pc.in

index 9fc8f74..cd6c3fc 100644 (file)
@@ -8,4 +8,4 @@ Name: dpdk
 Description: Data Plane Development Kit library
 Version: @VERSION@
 Libs: -L${libdir} @DPDK_LIBS@ -ldl -lm -lpthread -lz
-Cflags: -I${includedir}/dpdk -I${include_arch_dir}/dpdk -include ${include_arch_dir}/dpdk/rte_config.h
+Cflags: -include ${include_arch_dir}/dpdk/rte_config.h -I${include_arch_dir}/dpdk -I${includedir}/dpdk