From patchwork Fri Feb 2 21:00:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 126765 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp986402ljc; Fri, 2 Feb 2018 13:01:11 -0800 (PST) X-Google-Smtp-Source: AH8x227BKmxEgIBlb8PQb7t1MlNR/uGJpZw/sug6DoSU+DNOQblVvJ0YSOR/nXAOxfHKsQ9gsnZS X-Received: by 10.200.26.69 with SMTP id q5mr63081340qtk.174.1517605271138; Fri, 02 Feb 2018 13:01:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517605271; cv=none; d=google.com; s=arc-20160816; b=FcD7MxlrvyygwzDQkTLjoE8D6PS0lkhhbOPnZJljyRLyX8JPerF5Ury4asPeZqh30R Tv+uqUlhEJp1z1Gwvhhl6C7veUM7yIK6P25oEWEcFR06bJ3X7bW0KD1Z2PWYS2hYxrYG 0uRBqFIgtooLzeILeYYhfC6FWX0tbYUck2LzUdgc8emGQmnaSAv1b3Ha28Y50zAKeTso J9RdRG2VrVlwzigCEv09hynd+PTzCCgo72DGSLCJuMyRkz0qHefQ0EzB58aHMZTaQ8UC H5xEdLxQtEkQII0ptROoxemObzirKBNYt/5gEk1juMP7gVElzc0q788PMoXuGxvG+W1z /4jQ== 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=jcfvRPoeL19IxhmwyrOogzlEEOHRd7ZoiSZyd1L65pI=; b=DqHeW3Hitc4/I+9oi//9Yk0aJh5C88zIhmVeY3xREEUZjIykIyH9FiYso1Tap71t5M VBZtPVlzpcqt9jJWIu4EQWEU3iCgQjeC/B3zRckj3ICXWE4VpKposjjQ3tXEB/nWUXpt XBLnMiqT7p5bmrp30nEFFlV4f1KAiFp6F6d0K1m4GusfIZqD59F7LxyL8imkOn8MeQw5 e4V74rLk51rRPRt8c4MIJNO4Qsty4vPGtl4c5OVQiCIxpvGSvbdzkew9A6S818aMWsTs PO7tIFVISYjS8EPVNlxxQMXKf4wnyXoHx2UtnlNB6rdl6TCfAAwFW/j/T+xAqjq71iC/ EDWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id q4si433241qtk.165.2018.02.02.13.01.10; Fri, 02 Feb 2018 13:01:11 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 CF7DF61780; Fri, 2 Feb 2018 21:01:10 +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_H2 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 C408961698; Fri, 2 Feb 2018 21:00:40 +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 80BF860B50; Fri, 2 Feb 2018 21:00:37 +0000 (UTC) Received: from forward104j.mail.yandex.net (forward104j.mail.yandex.net [5.45.198.247]) by lists.linaro.org (Postfix) with ESMTPS id 4201E60948 for ; Fri, 2 Feb 2018 21:00:36 +0000 (UTC) Received: from mxback14j.mail.yandex.net (mxback14j.mail.yandex.net [IPv6:2a02:6b8:0:1619::90]) by forward104j.mail.yandex.net (Yandex) with ESMTP id 95F8343B80 for ; Sat, 3 Feb 2018 00:00:34 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback14j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id knsaThZyFN-0YDKGQQB; Sat, 03 Feb 2018 00:00:34 +0300 Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id CJmJgtjX1k-0YQalShZ; Sat, 03 Feb 2018 00:00:34 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Sat, 3 Feb 2018 00:00:16 +0300 Message-Id: <1517605217-8067-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517605217-8067-1-git-send-email-odpbot@yandex.ru> References: <1517605217-8067-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 449 Subject: [lng-odp] [PATCH v4 1/2] build: limit symbol visibility for libodp-linux 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 If libodp-linux is linked with static DPDK libraries, it will re-export all DPDK symbols. Use libtool's -export-symbols-regex to limit symbol visibility. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 449 (lumag:visibility) ** https://github.com/Linaro/odp/pull/449 ** Patch: https://github.com/Linaro/odp/pull/449.patch ** Base sha: 5865787680be13b47b777e8b0b64646755be41e0 ** Merge commit sha: cc979019373b81a80e9e7c7c417ce9557932d6cc **/ platform/Makefile.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/Makefile.inc b/platform/Makefile.inc index 4714de0ee..813ad97e0 100644 --- a/platform/Makefile.inc +++ b/platform/Makefile.inc @@ -8,6 +8,12 @@ lib_LTLIBRARIES = $(LIB)/libodp-linux.la AM_LDFLAGS = -version-number '$(ODP_LIBSO_VERSION)' +if ODP_ABI_COMPAT +AM_LDFLAGS += -export-symbols-regex '^(_deprecated)?odp_' +else +AM_LDFLAGS += -export-symbols-regex '^(_deprecated)?_?odp_' +endif + AM_CFLAGS = "-DGIT_HASH=$(VERSION)" AM_CFLAGS += $(VISIBILITY_CFLAGS)