From patchwork Wed May 24 17:00:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 100449 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp374245qge; Wed, 24 May 2017 10:03:15 -0700 (PDT) X-Received: by 10.200.1.26 with SMTP id e26mr35050996qtg.75.1495645395356; Wed, 24 May 2017 10:03:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495645395; cv=none; d=google.com; s=arc-20160816; b=RgeYQBkInTPFJ9c+oe74E7jASLE0uNRCHiwH321AhL4v2KBmw0IHcqFwCVAd13G/Zh QaeBz1adfHLXe+VKxRUWz1l/7im/z4MNVLvvJX4q75W29SEL13U0BFnx/ADSLly0oh93 urJexHqZ/ZqmsZOghs3wMynM82FWS8vzD2tZnAZiKntCugkLwuoCb3E7lV4ixnW4Gycw WpHSGRu3FqwB7I55880RdtJg22e+DVUXLJAA1arrtqE2DjXkLu+DWHiI1CKPaEtvFY3c 4Nlw3sLEKbPaycU3Ax5R8YrjXKoUdRY5B0hxZlOctSFmoBhFD9Jy4ex97bLASYMxnaon J8dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=sSA4fEzoO4AlPoBWdwrD9F6iDcLLAYEJLzMTVxZ/1k8=; b=lrEKa65kDk/mtXFW/3T33NSnYId19ClzxAw8CkUJfoHL6QoCgNg3kFnlqtFjj+qzXk e1GGhicd2GqbqQu9xNasWmNdYmNlLBqxcyFem+EjCX7tbHwuE7u61dgeyuMhHCUe+pXU 5oj61MvF8POPhQJtnOVSKSweeyYQNSrD6AqPXguISV1wA3PbLvvdMKzxFKDNmqpQj1Lp 5S6rDPQA5dM81O2Sup21NRPx20yHt1YYVRieaYYqOj3I1cR55s2/ykog9nh5LwMqBKNA HSfN/b0vAAQsec6UKp/d7yO12tAaqWxkHIkm3gUyu3RDNAKtCrypMjWc1/vp59etgZSn LfVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id w141si62378qkw.130.2017.05.24.10.03.15; Wed, 24 May 2017 10:03:15 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 0889A62059; Wed, 24 May 2017 17:03:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 59B6261FFD; Wed, 24 May 2017 17:02:46 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 0E10462009; Wed, 24 May 2017 17:02:33 +0000 (UTC) Received: from forward2o.cmail.yandex.net (forward2o.cmail.yandex.net [37.9.109.243]) by lists.linaro.org (Postfix) with ESMTPS id A948062011 for ; Wed, 24 May 2017 17:00:20 +0000 (UTC) Received: from smtp1h.mail.yandex.net (smtp1h.mail.yandex.net [IPv6:2a02:6b8:0:f05::115]) by forward2o.cmail.yandex.net (Yandex) with ESMTP id CA61021371 for ; Wed, 24 May 2017 20:00:18 +0300 (MSK) Received: from smtp1h.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1h.mail.yandex.net (Yandex) with ESMTP id 9BAEB8C0D7B for ; Wed, 24 May 2017 20:00:17 +0300 (MSK) Received: by smtp1h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id kneMj7hxQi-0H3KQXo3; Wed, 24 May 2017 20:00:17 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Wed, 24 May 2017 20:00:05 +0300 Message-Id: <1495645205-28439-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1495645205-28439-1-git-send-email-odpbot@yandex.ru> References: <1495645205-28439-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 38 Subject: [lng-odp] [PATCH v2 1/1] travis: use pkg-config to discover ODP flags X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- /** 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: 2a43e1a78dacc9d3122ed0cd88edd811052d09c0 **/ .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 65edfbb3..8ef5637e 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 + - ${CC} ${OLDPWD}/example/hello/odp_hello.c -o odp_hello_inst `PKG_CONFIG_PATH=${HOME}/odp-install/lib/pkgconfig 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 + - ${CC} ${OLDPWD}/example/hello/odp_hello.c -o odp_hello_inst `PKG_CONFIG_PATH=${HOME}/odp-install/lib/pkgconfig pkg-config --cflags --libs libodp-linux --static` $MY_CF $MY_LDF -static - ./odp_hello_inst - popd