diff options
author | Luca Boccassi <luca.boccassi@gmail.com> | 2018-03-08 15:29:19 +0000 |
---|---|---|
committer | Christian Ehrhardt <christian.ehrhardt@canonical.com> | 2018-03-13 12:29:16 +0100 |
commit | fe937ea48924ba23f73ad68063366af85b0564e5 (patch) | |
tree | d7c499b30023a6d5fca5a102029581500db0f510 | |
parent | ece9ef9a645aa378404b47242198fe977d86ec7f (diff) |
Use pkg-config and global include in autopkgtest
pkg-config provides the required include paths, and currently
autopkgtest fails because rte_common.h now tries to include
rte_config.h which is not in the same directroy as it is arch
specific.
Also use global path for the include.
Change-Id: I3cddc769f0e4f12687cc58bc526f887e6cf0d703
Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
-rw-r--r-- | debian/tests/test-linkage | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/tests/test-linkage b/debian/tests/test-linkage index 31e409eb..4600a086 100644 --- a/debian/tests/test-linkage +++ b/debian/tests/test-linkage @@ -6,7 +6,7 @@ basedir=$(dirname "$0") cat > testlinkage.c << EOF #include <stdio.h> -#include "dpdk/rte_common.h" +#include <rte_common.h> int main() { @@ -18,7 +18,7 @@ EOF # -ldpdk actually refers to a linker script now, not a real .so # with broken linkage this will fail with undefined symbols printf "\n\nChecking compile with link against DPDK\n" -gcc -v testlinkage.c -o testlinkage.bin -Wall -Werror -ldpdk +gcc -v testlinkage.c -o testlinkage.bin -Wall -Werror `pkg-config --libs --cflags libdpdk` echo "OK" printf "\n\nLinkage info\n" |