diff --git a/build/jam/BootRules b/build/jam/BootRules index b5c26562a4..edbabcfafa 100644 --- a/build/jam/BootRules +++ b/build/jam/BootRules @@ -182,13 +182,19 @@ rule BootMergeObject rule BootStaticLibrary { - # Usage BootStaticLibrary : : ; + # BootStaticLibrary : : ; # This is designed to take a set of sources and libraries and create - # a file called lib.a + # a static library. + local extraFlags = $(3) ; TARGET_PACKAGING_ARCH on $(1) = $(TARGET_KERNEL_ARCH) ; - SetupBoot $(2) : $(3) : false ; + if $(TARGET_CC_IS_LEGACY_GCC_$(TARGET_KERNEL_ARCH)) = 0 + && [ on $(1) return $(NO_HIDDEN_VISIBILITY) ] != 1 { + extraFlags += -fvisibility=hidden ; + } + + SetupBoot $(2) : $(extraFlags) : false ; Library $(1) : $(2) ; }