@@ -334,6 +334,12 @@ LIBUNWIND =
SHLIBUNWIND_LINK =
SHLIBUNWIND_INSTALL =
+# 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. This is set before including $(tmake_file)
+# so it can be overridden on a host-specific basis.
+vis_hide = @vis_hide@
+
tmake_file = @tmake_file@
include $(srcdir)/empty.mk $(tmake_file)
@@ -363,11 +369,6 @@ ifeq ($(enable_shared),yes)
install-libunwind = install-libunwind
endif
-# 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@
-
ifneq (,$(vis_hide))
# If we have -fvisibility=hidden, then we need to generate hide
@@ -1174,3 +1174,10 @@ i[34567]86-*-linux* | x86_64-*-linux*)
tm_file="${tm_file} i386/value-unwind.h"
;;
esac
+
+case ${host} in
+*-grtev3-*)
+ # Don't hide symbols in static libraries.
+ tmake_file="${tmake_file} t-static-no-vis-hide"
+ ;;
+esac
new file mode 100644
@@ -0,0 +1,2 @@
+# Don't hide symbols in static libraries.
+vis_hide =