diff mbox series

[v1,1/1] travis: use pkg-config to discover ODP flags

Message ID 1495641606-27938-2-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [v1,1/1] travis: use pkg-config to discover ODP flags | expand

Commit Message

Github ODP bot May 24, 2017, 4 p.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 38 (lumag:fix-link)
 ** https://github.com/Linaro/odp/pull/38
 ** Patch: https://github.com/Linaro/odp/pull/38.patch
 ** Base sha: ea134fe159c0d249e4bed12b7269e8236afa0262
 ** Merge commit sha: f031f4f42208491058f3e37b996d067658737abc
 **/
 .travis.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/.travis.yml b/.travis.yml
index 65edfbb3..3d7945ed 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -133,10 +133,10 @@  script:
         - echo "Checking linking and run from install..."
         - pushd $HOME
         - echo "Dynamic link.."
-        - ${CC} ${OLDPWD}/example/hello/odp_hello.c -o odp_hello_inst -I${HOME}/odp-install/include -L${HOME}/odp-install/lib -lodp-linux -L${OLDPWD}/dpdk/x86_64-native-linuxapp-gcc/lib -lrt -ldpdk -lpthread -lcrypto -lpcap $MY_CF $MY_LDF -ldl
+        - PKG_CONFIG_PATH=${HOME}/odp-install/lib/pkgconfig ${CC} ${OLDPWD}/example/hello/odp_hello.c -o odp_hello_inst `pkg-config --cflags --libs libodp-linux` $MY_CF $MY_LDF
         - LD_LIBRARY_PATH="${HOME}/odp-install/lib:$LD_LIBRARY_PATH" ./odp_hello_inst
         - echo "Static link.."
-        - ${CC} ${OLDPWD}/example/hello/odp_hello.c -o odp_hello_inst -I${HOME}/odp-install/include -L${HOME}/odp-install/lib -lodp-linux -L${OLDPWD}/dpdk/x86_64-native-linuxapp-gcc/lib -lrt -ldpdk -lpthread -lcrypto -lpcap $MY_CF $MY_LDF -ldl -static
+        - PKG_CONFIG_PATH=${HOME}/odp-install/lib/pkgconfig ${CC} ${OLDPWD}/example/hello/odp_hello.c -o odp_hello_inst `pkg-config --cflags --libs libodp-linux --static` $MY_CF $MY_LDF -static
         - ./odp_hello_inst
         - popd