From: Luca Boccassi Date: Thu, 6 Jul 2017 18:02:11 +0000 (+0100) Subject: Order pkgconfig includes with arch-specific first X-Git-Url: https://gerrit.fd.io/r/gitweb?p=deb_dpdk.git;a=commitdiff_plain;h=fb33b3195d3eb15f0d9ffe5e963314c2696d07f0 Order pkgconfig includes with arch-specific first 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 --- diff --git a/debian/libdpdk.pc.in b/debian/libdpdk.pc.in index 9fc8f74f..cd6c3fcb 100644 --- a/debian/libdpdk.pc.in +++ b/debian/libdpdk.pc.in @@ -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