From patchwork Sun Jan 22 18:34:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 9531421 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 79FFD601D4 for ; Sun, 22 Jan 2017 18:37:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C59E27CF9 for ; Sun, 22 Jan 2017 18:37:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6136827F9F; Sun, 22 Jan 2017 18:37:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 67EF127CF9 for ; Sun, 22 Jan 2017 18:37:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5333D6E343; Sun, 22 Jan 2017 18:37:08 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1AF506E344 for ; Sun, 22 Jan 2017 18:37:06 +0000 (UTC) Received: by mail-wm0-x244.google.com with SMTP id r144so20874938wme.0 for ; Sun, 22 Jan 2017 10:37:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Iup6TyqEbm7p7f1ogLMchY7VCaBC6Tv49MBXEs1jr0c=; b=Ebdyf1Vt3YVdhDDRXaUZnEHrgz22z9/M57KnqQCsX10mla8//QxuUbZhTg9LBnxhki YdkHq3BNQViNIWvT12DSvVmB1GW5L1ITMuvk4INJZpAVOpzBfMwmj/6JDz6Al7W3qUkk +6aw4trYJilzj4ykfKMRGF49ODPftMSTWWPl6N23l8iJ6bMyoC7I4Syv8BBZyBZ/T7XC qQPVKvXPa0LJsgKdxqqILhN2COKgakb2GtJeSs620CuM23H7CGYBeqGKwGGdC+riWtKO T0S+T4DRSiikTICP+0eY+tu1rpEHynlxBu/NtjgyYWh1rOfIzIOfuh9xJ9kXgFSsxzHl XsUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Iup6TyqEbm7p7f1ogLMchY7VCaBC6Tv49MBXEs1jr0c=; b=n7OoHmEGqtiqIzxF6nlmTSyRLimJiFy5QTLZVxnkMeO/y8/Nj7R4jvJY+OCtC40/Zg YQhf/lPcgRWQzpJoLEuxR8Jd8hdWv3sbzPMa2t78vzo2YnSMhpbOReqIKbhsXmwFTL7E H+TFzAOQtR10orTQSvqDQxdbbMQ+NtznB0HXhyOyC9fCjJ8pMwxsU7MtPZZdAPfZKOKN JnPhb8kOXojAzqHhS/HFFbGk8lDyzKg4OLH+sb4BAp0PKwo8rrqc7jwQzdRE+h2HIJtm XaGGNj5M9DqLvowQsyGP6gocO5tNy2klUexFouKbk/71YMzXLu9543HalOetLUOfAkpY Babg== X-Gm-Message-State: AIkVDXJ3ouJ5Y5JNcNeXx8KFuMtyiHqbSb0cYCpc/giS544wJXnXr2hbPUVDiG3MaXd5yA== X-Received: by 10.223.165.87 with SMTP id j23mr24858783wrb.79.1485110224698; Sun, 22 Jan 2017 10:37:04 -0800 (PST) Received: from localhost.localdomain (cpc91186-cmbg18-2-0-cust67.5-4.cable.virginm.net. [80.1.50.68]) by smtp.gmail.com with ESMTPSA id c202sm17099824wmd.10.2017.01.22.10.37.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jan 2017 10:37:03 -0800 (PST) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 3/5] android: add HAVE_VISIBILITY to Android.common.mk Date: Sun, 22 Jan 2017 18:34:41 +0000 Message-Id: <20170122183443.11963-3-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170122183443.11963-1-emil.l.velikov@gmail.com> References: <20170122183443.11963-1-emil.l.velikov@gmail.com> Cc: emil.l.velikov@gmail.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Currently only libdrm.so properly annotates its internal/private symbols. By setting the macro every binary produced will be in the same boat. This should give is smaller and more secure files Cc: Chih-Wei Huang Cc: Rob Herring Signed-off-by: Emil Velikov --- Android.common.mk | 1 + Android.mk | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Android.common.mk b/Android.common.mk index c6ab8f50..ffe92198 100644 --- a/Android.common.mk +++ b/Android.common.mk @@ -1,4 +1,5 @@ LOCAL_CFLAGS += \ + -DHAVE_VISIBILITY=1 \ -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1 # Quiet down the build system and remove any .h files from the sources diff --git a/Android.mk b/Android.mk index ec6d5322..5209059e 100644 --- a/Android.mk +++ b/Android.mk @@ -41,9 +41,6 @@ LOCAL_EXPORT_C_INCLUDE_DIRS := \ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/include/drm -LOCAL_CFLAGS := \ - -DHAVE_VISIBILITY=1 - include $(LIBDRM_COMMON_MK) include $(BUILD_STATIC_LIBRARY) @@ -58,9 +55,6 @@ LOCAL_EXPORT_C_INCLUDE_DIRS := \ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/include/drm -LOCAL_CFLAGS := \ - -DHAVE_VISIBILITY=1 - include $(LIBDRM_COMMON_MK) include $(BUILD_SHARED_LIBRARY)