From f34aded965ad590a48d0a26966a0c70de4ed61a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sun, 26 Jan 2014 17:46:36 +0100 Subject: [PATCH] libgcc: Maintain the same visibility as older GCC for now. Needed because the static library is included in libroot.so. --- gcc/libgcc/Makefile.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/libgcc/Makefile.in b/gcc/libgcc/Makefile.in index 990cd49277..377e2bc852 100644 --- a/gcc/libgcc/Makefile.in +++ b/gcc/libgcc/Makefile.in @@ -365,10 +365,16 @@ ifeq ($(enable_shared),yes) endif endif +ifneq ($(enable_shared),yes) +# Maintain the same visibility as older GCC for now. Needed on Haiku +# because the static library is included in libroot.so. +vis_hide = +else # For -fvisibility=hidden. We need both a -fvisibility=hidden on # the command line, and a #define to prevent libgcc2.h etc from # overriding that with #pragmas. vis_hide = @vis_hide@ +endif ifneq (,$(vis_hide))