From patchwork Fri Feb 2 03:00:06 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: 126599 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp231274ljc; Thu, 1 Feb 2018 19:00:19 -0800 (PST) X-Google-Smtp-Source: AH8x226cbORpqutgFW1MMyeOpdWqT9+mccboMQTVqtfNu3wpvjBALYdMX9KADY7MJhxbrURMM5X4 X-Received: by 10.200.68.80 with SMTP id m16mr6211114qtn.294.1517540419557; Thu, 01 Feb 2018 19:00:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517540419; cv=none; d=google.com; s=arc-20160816; b=s+dFKefapm1N6whXuOuplDdUnUG0JWfXFCgc03NbCSk8lOUYqHKtLg73nIP39PwNCM mni7nlW6ZB0LLfWJGNaXJ8kbkGYr5CJN7qdMO7Z5Tr/zJPH7ohtLFol+xIeNcX5p7vGl xnopfMd8x3e3funXOBbu/r/DR7Z/xPcNUedUfficRGXyH3tnlEEhXmTcm30Pjp/H9Qrw QrrVo70FiVZ/65FFL+gfETgYFjYGqbuDEunlPeR8mQC42eoDwtGeZn161ms1IKCId8r9 R3vZzl9FG0w7WUj4qIUrc0jHcBrRf3bILjpiSibbq9VF7Q4Tu1+zckIidXiCF0f9LRBN 2QfQ== 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=xna1TLEVEL+Ch2oyoR4pkR4H5CLsBnHvFw1rBpf+FHU=; b=jG0VuRYGkw+wyvFbHFgnl4QxohATWS1BBRJaSkbISH46wn8QJFeeeerzlweaXoFRXg 5d2K9OZPMyyMy9lmJXETtshoRBf9QQmrvjwUaglnIGI2/cvQ6sVDpk/MvT+tom8u2Bih t6BnT8Hvwy+DdomGSWDszCwvcVLfexbZFFhBixKnGeadabreHpbteH7MgGo6d15LHSYu rPVofqE47WfkVLbNy7DohzCh4P1DmVSPmubL80suR8XAOoq+z8PbPIx+dkF2TYBETsH1 81o6obyrdM+6tl+r1FzEFZoohQIjultloGhNrAFnmRITmvlz3OxycBvdfAeqNM6O4zZ8 viCg== 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 t52si1145025qta.217.2018.02.01.19.00.18; Thu, 01 Feb 2018 19:00:19 -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 ACAC261741; Fri, 2 Feb 2018 03:00:18 +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 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 375246150C; Fri, 2 Feb 2018 03:00:15 +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 96E486156D; Fri, 2 Feb 2018 03:00:12 +0000 (UTC) Received: from forward104p.mail.yandex.net (forward104p.mail.yandex.net [77.88.28.107]) by lists.linaro.org (Postfix) with ESMTPS id 5116E61506 for ; Fri, 2 Feb 2018 03:00:11 +0000 (UTC) Received: from mxback4j.mail.yandex.net (mxback4j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10d]) by forward104p.mail.yandex.net (Yandex) with ESMTP id 7E0D318450F for ; Fri, 2 Feb 2018 06:00:09 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback4j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id mP6VrPRcyR-09S40o00; Fri, 02 Feb 2018 06:00:09 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id sds6Dgl6aP-08sC6HCL; Fri, 02 Feb 2018 06:00:08 +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: Fri, 2 Feb 2018 06:00:06 +0300 Message-Id: <1517540407-7907-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517540407-7907-1-git-send-email-odpbot@yandex.ru> References: <1517540407-7907-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 449 Subject: [lng-odp] [PATCH v2 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: b95ccd3db6eeb7358a877541747e06354429acdd ** Merge commit sha: 93f84688ed1f3f3a6bf2eed856d79545ba8ba930 **/ platform/Makefile.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/Makefile.inc b/platform/Makefile.inc index 4714de0ee..119649013 100644 --- a/platform/Makefile.inc +++ b/platform/Makefile.inc @@ -8,6 +8,8 @@ lib_LTLIBRARIES = $(LIB)/libodp-linux.la AM_LDFLAGS = -version-number '$(ODP_LIBSO_VERSION)' +AM_LDFLAGS += -export-symbols-regex '^(_deprecated)?_?odp*' + AM_CFLAGS = "-DGIT_HASH=$(VERSION)" AM_CFLAGS += $(VISIBILITY_CFLAGS)