From 865ed6f133627772d6b02d4a44cd8fae447ef294 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 18 Nov 2016 09:40:20 -0800 Subject: [PATCH] Define VISIBILITY_HIDDEN when compiling objects Apparently compiler-rt passed this and we just forgot to. Fixes visibility of some symbols on 32-bit Linux. --- library/compiler-builtins/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/compiler-builtins/build.rs b/library/compiler-builtins/build.rs index 6e7833013eed..e6ad4c6a13b7 100644 --- a/library/compiler-builtins/build.rs +++ b/library/compiler-builtins/build.rs @@ -78,6 +78,7 @@ fn main() { cfg.flag("-fvisibility=hidden"); cfg.flag("-fomit-frame-pointer"); cfg.flag("-ffreestanding"); + cfg.define("VISIBILITY_HIDDEN", None); } // NOTE Most of the ARM intrinsics are written in assembly. Tell gcc which arch we are going to