From patchwork Wed Apr 1 16:15:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 6141321 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 148FF9F399 for ; Wed, 1 Apr 2015 16:13:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1E36C20364 for ; Wed, 1 Apr 2015 16:12:59 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 10D4320148 for ; Wed, 1 Apr 2015 16:12:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 00FF66E8D6; Wed, 1 Apr 2015 09:12:56 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by gabe.freedesktop.org (Postfix) with ESMTP id CB8166E8D3 for ; Wed, 1 Apr 2015 09:12:55 -0700 (PDT) Received: by widdi4 with SMTP id di4so50652377wid.0 for ; Wed, 01 Apr 2015 09:12:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=nYHnFR/IjV3x12afUEO81ZfK+06PJQlfkOEet3xbV4M=; b=PjwhQD1hmL803+ZKSbPkPDkYxvICoKhiZKYB7DbsWwbpK13u+pzBXlMttv2FHryNgd 05xYvKR1WgsJApZcSXk4AdjLZgqVawZywsqtXSRhe7SHogvJ14YtAXYYFJfq76lPmRl+ ti6Zv1frOtkZUBxzvicTJKgOsHeDuc5Edx9Qrbjw2P+GYdkqT3yPhrhtXxOtHO2gbG2r GE5ZXxUFP+2aJvIGUdptHvEgs1if0+WSSU3T1p1Ij834oh3cxjFLa/rO4rMk4f/1M8ju /tkVR/JfQs7yozTYdMs/euGpF+4eygP6iXcIzxS3sDAibvwljFOgfju6Rg6YNZQKu15Z LBFA== X-Received: by 10.180.38.15 with SMTP id c15mr16661236wik.74.1427904775149; Wed, 01 Apr 2015 09:12:55 -0700 (PDT) Received: from arch-x220.localdomain (cpc12-croy20-2-0-cust52.croy.cable.virginm.net. [82.44.54.53]) by mx.google.com with ESMTPSA id ge8sm3319498wjc.32.2015.04.01.09.12.53 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Apr 2015 09:12:54 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 23/24] drm: remove no longer needed VISIBILITY_CFLAGS Date: Wed, 1 Apr 2015 17:15:34 +0100 Message-Id: <1427904935-14387-24-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.3.1 In-Reply-To: <1427904935-14387-1-git-send-email-emil.l.velikov@gmail.com> References: <1427904935-14387-1-git-send-email-emil.l.velikov@gmail.com> MIME-Version: 1.0 Cc: emil.l.velikov@gmail.com, =?UTF-8?q?Michel=20D=C3=A4nzer?= , Ben Skeggs , Thierry Reding 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP With earlier commits we've annotated the private symbols, thus we no longer require the -fvisibility=hidden CFLAGS. Cc: Ben Skeggs Cc: Damien Lespiau Cc: Maarten Lankhorst Cc: Michel Dänzer Cc: Rob Clark Cc: Thierry Reding Signed-off-by: Emil Velikov --- configure.ac | 15 --------------- exynos/Makefile.am | 1 - freedreno/Makefile.am | 1 - intel/Makefile.am | 1 - nouveau/Makefile.am | 1 - omap/Makefile.am | 1 - radeon/Makefile.am | 1 - tegra/Makefile.am | 1 - 8 files changed, 22 deletions(-) diff --git a/configure.ac b/configure.ac index 76cf91e..c25a813 100644 --- a/configure.ac +++ b/configure.ac @@ -403,21 +403,6 @@ AC_ARG_WITH([kernel-source], [kernel_source="$with_kernel_source"]) AC_SUBST(kernel_source) -dnl Add flags for gcc and g++ -if test "x$GCC" = xyes; then - # Enable -fvisibility=hidden if using a gcc that supports it - save_CFLAGS="$CFLAGS" - AC_MSG_CHECKING([whether $CC supports -fvisibility=hidden]) - VISIBILITY_CFLAGS="-fvisibility=hidden" - CFLAGS="$CFLAGS $VISIBILITY_CFLAGS" - AC_LINK_IFELSE([AC_LANG_PROGRAM()], AC_MSG_RESULT([yes]), - [VISIBILITY_CFLAGS=""; AC_MSG_RESULT([no])]); - - # Restore CFLAGS; VISIBILITY_CFLAGS are added to it where needed. - CFLAGS=$save_CFLAGS - AC_SUBST([VISIBILITY_CFLAGS]) -fi - AC_MSG_CHECKING([whether $CC supports __attribute__((visibility))]) AC_LINK_IFELSE([AC_LANG_PROGRAM([ int foo_default( void ) __attribute__((visibility("default"))); diff --git a/exynos/Makefile.am b/exynos/Makefile.am index 0136a61..f99f898 100644 --- a/exynos/Makefile.am +++ b/exynos/Makefile.am @@ -1,6 +1,5 @@ AM_CFLAGS = \ $(WARN_CFLAGS) \ - $(VISIBILITY_CFLAGS) \ -I$(top_srcdir) \ $(PTHREADSTUBS_CFLAGS) \ -I$(top_srcdir)/include/drm diff --git a/freedreno/Makefile.am b/freedreno/Makefile.am index 27e6aa6..0720867 100644 --- a/freedreno/Makefile.am +++ b/freedreno/Makefile.am @@ -3,7 +3,6 @@ include Makefile.sources AM_CFLAGS = \ $(WARN_CFLAGS) \ - $(VISIBILITY_CFLAGS) \ -I$(top_srcdir) \ $(PTHREADSTUBS_CFLAGS) \ -I$(top_srcdir)/include/drm diff --git a/intel/Makefile.am b/intel/Makefile.am index 09bfbae..de3baab 100644 --- a/intel/Makefile.am +++ b/intel/Makefile.am @@ -26,7 +26,6 @@ include Makefile.sources AM_CFLAGS = \ $(WARN_CFLAGS) \ - $(VISIBILITY_CFLAGS) \ -I$(top_srcdir) \ $(PTHREADSTUBS_CFLAGS) \ $(PCIACCESS_CFLAGS) \ diff --git a/nouveau/Makefile.am b/nouveau/Makefile.am index 2f61351..25ea6dc 100644 --- a/nouveau/Makefile.am +++ b/nouveau/Makefile.am @@ -2,7 +2,6 @@ include Makefile.sources AM_CFLAGS = \ $(WARN_CFLAGS) \ - $(VISIBILITY_CFLAGS) \ -I$(top_srcdir) \ $(PTHREADSTUBS_CFLAGS) \ -I$(top_srcdir)/include/drm \ diff --git a/omap/Makefile.am b/omap/Makefile.am index b34fba6..599bb9d 100644 --- a/omap/Makefile.am +++ b/omap/Makefile.am @@ -1,6 +1,5 @@ AM_CFLAGS = \ $(WARN_CFLAGS) \ - $(VISIBILITY_CFLAGS) \ -I$(top_srcdir) \ $(PTHREADSTUBS_CFLAGS) \ -I$(top_srcdir)/include/drm diff --git a/radeon/Makefile.am b/radeon/Makefile.am index 54abd9e..ab3cd08 100644 --- a/radeon/Makefile.am +++ b/radeon/Makefile.am @@ -26,7 +26,6 @@ include Makefile.sources AM_CFLAGS = \ $(WARN_CFLAGS) \ - $(VISIBILITY_CFLAGS) \ -I$(top_srcdir) \ $(PTHREADSTUBS_CFLAGS) \ -I$(top_srcdir)/include/drm diff --git a/tegra/Makefile.am b/tegra/Makefile.am index efa14f9..fb40be5 100644 --- a/tegra/Makefile.am +++ b/tegra/Makefile.am @@ -4,7 +4,6 @@ AM_CPPFLAGS = \ AM_CFLAGS = \ @PTHREADSTUBS_CFLAGS@ \ - $(VISIBILITY_CFLAGS) \ $(WARN_CFLAGS) libdrm_tegra_ladir = $(libdir)