From patchwork Fri Sep 23 16:15:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 76895 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp653332qgf; Fri, 23 Sep 2016 09:16:04 -0700 (PDT) X-Received: by 10.200.56.72 with SMTP id r8mr8722483qtb.120.1474647364447; Fri, 23 Sep 2016 09:16:04 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f1si5617986qtf.91.2016.09.23.09.16.02; Fri, 23 Sep 2016 09:16:04 -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=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 16D3F60E20; Fri, 23 Sep 2016 16:16:02 +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, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL 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 E2F4960CE6; Fri, 23 Sep 2016 16:15: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 859EC60BDB; Fri, 23 Sep 2016 16:15:25 +0000 (UTC) Received: from mail-oi0-f41.google.com (mail-oi0-f41.google.com [209.85.218.41]) by lists.linaro.org (Postfix) with ESMTPS id 8408860B14 for ; Fri, 23 Sep 2016 16:15:24 +0000 (UTC) Received: by mail-oi0-f41.google.com with SMTP id t83so139761664oie.3 for ; Fri, 23 Sep 2016 09:15:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=N7rAR3WaUrlCC2vVxZ4uYwmsK7tG2MFtcxbSGrc+Ric=; b=H27yNxkcxi/a+WtA2yHCj8fJ5Auqb/f+eEZBkVwNRhFYVrtcXWEwuwTH0GBaiSdYvg eCXGjG0eKYjwSCO4Lc9xIfoxwl8EMCD1pm8AMl/JYkxZgUbxDRz7X9bS2bjN/J0gnpQX FO3AIfTdIjRoWzqfp2Ld/q7LO/kOqB1ZOvRtMTR/LFyol2NjnxJbIP/vWmmxhAlPiDCg wex+p+/j8ULJ+VjcoMYVsQn9aLD6rew8hgvjh485lgNjm/2/2LoI7pk801ajUtnb3Zup 6DHgV1odUilFg1Z8QmYZBP1sa3gfvhYxXp9O5CgRZbC/GHwdnRQWl68AjULfGdiJQtR+ TYDQ== X-Gm-Message-State: AE9vXwMFhovtN5n0uel+tbvuqTcqTwpEdc6p5Qc3O/6sYp23p1UbefEIFEOMSFN1Qps1VAU3R94= X-Received: by 10.202.57.85 with SMTP id g82mr11549958oia.166.1474647323910; Fri, 23 Sep 2016 09:15:23 -0700 (PDT) Received: from localhost.localdomain (cpe-70-121-83-241.austin.res.rr.com. [70.121.83.241]) by smtp.gmail.com with ESMTPSA id n9sm2347461oib.21.2016.09.23.09.15.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Sep 2016 09:15:23 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Fri, 23 Sep 2016 11:15:21 -0500 Message-Id: <1474647321-7457-2-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474647321-7457-1-git-send-email-bill.fischofer@linaro.org> References: <1474647321-7457-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 2/2] config: share: use relocatable code if --enable-shared=no is specified 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" Resolve Bug https://bugs.linaro.org/show_bug.cgi?id=2510 by adding CFLAGS=-fPIC when --enable-shared=no is in effect to force generation of relocatable code. Signed-off-by: Bill Fischofer --- Changes for v3: - Correct test directionality to make --enable-shared=yes the default configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.7.4 diff --git a/configure.ac b/configure.ac index 983b221..f33422a 100644 --- a/configure.ac +++ b/configure.ac @@ -189,6 +189,14 @@ fi AC_SUBST(_ODP_INLINES) ########################################################################## +# Generate PCI if sharing not supported +########################################################################## +if test x$enable_shared == xno; +then + CFLAGS="$CFLAGS -fPIC" +fi + +########################################################################## # Setup doxygen documentation ########################################################################## DX_HTML_FEATURE(ON)