From patchwork Wed May 24 16:00:06 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: 100448 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp345965qge; Wed, 24 May 2017 09:00:57 -0700 (PDT) X-Received: by 10.200.40.178 with SMTP id i47mr37218656qti.59.1495641657795; Wed, 24 May 2017 09:00:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495641657; cv=none; d=google.com; s=arc-20160816; b=ZrjARdsGCdgZAWlnN/FvmCRNbseJADNIyKKdkLfDfOEUVZnW3P3WxTsj5vr7H3srMf 7zxOePwZEhJtolnEOCpezAanvMjS5oVh+SMluYVRNRrZ1iZ6o0wqG4zUjkgd/MXotr8r bhK/6zvCXhqmKUrlO/VCVoLRfsf/Gy9llCkxgOMdCIRwDsDjHLQ8Ni/Z1jDw6/2hjw6F SvpoTvioqtveZ2EeiItv01De7KWL7cb2UZfF4h2nz/jCkTSNCIhFtoCHavEUQMJkPzRV IhN/BD8ZtqvLLMw841gzk+K8NLxzcpALuSDRQNVF7O0lNNzWnHUgT6YfF3ZO1MF5C5Ie 3NxA== 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=aidjojNDBflVOHsmsfCEzJ4c7gsFU9r42xNsVASzAXI=; b=pwQXX9Z9sfIK+mEeATD4aueGx6FGGSj+fq+/7IqVHmrmx3NXb/rakRCLvx0jxPdUEg +lHbcqV/zqSfzjRrFkjlQsa2sUU857tgEGfx8jgTBuZdLH3K+1fNNUeosN1GzVpZIQ5k DvHoV1K9G4yFjsH+lzhKuYesYR4YwANJeKmXEbseJRpCk1cDFVcPmtagAwUxKxhTMe5O EeWVu4IRxgN3c4eMF+av+xhPALWTMBLhXb1WVBT06ovyzn5W8N6jwv+akGyEiNjZ9nO1 eWZDL6grmlfQJ+bkR1cJe3EQL5O7MIz5L+wuA5la+q10gdnGu/hvdCcDQFhPoqPOlkoW 4cWw== 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 p57si1017410qtc.184.2017.05.24.09.00.57; Wed, 24 May 2017 09:00:57 -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 5874A61FF9; Wed, 24 May 2017 16:00:57 +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,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 EB7CF61FFD; Wed, 24 May 2017 16:00:28 +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 D36CC61FD2; Wed, 24 May 2017 16:00:22 +0000 (UTC) Received: from forward4o.cmail.yandex.net (forward4o.cmail.yandex.net [37.9.109.248]) by lists.linaro.org (Postfix) with ESMTPS id 96CED61FDF for ; Wed, 24 May 2017 16:00:21 +0000 (UTC) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::27]) by forward4o.cmail.yandex.net (Yandex) with ESMTP id 9D5C420C9D for ; Wed, 24 May 2017 19:00:19 +0300 (MSK) Received: from smtp3o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3o.mail.yandex.net (Yandex) with ESMTP id 6B5262940EAB for ; Wed, 24 May 2017 19:00:18 +0300 (MSK) Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 6SpSW9UMfC-0IhudE6L; Wed, 24 May 2017 19:00:18 +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 19:00:06 +0300 Message-Id: <1495641606-27938-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1495641606-27938-1-git-send-email-odpbot@yandex.ru> References: <1495641606-27938-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 38 Subject: [lng-odp] [PATCH v1 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: f031f4f42208491058f3e37b996d067658737abc **/ .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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