]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg/X64/ProcessorBind.h: Fix EmulatorPkg X64 XCODE5
authorMichael D Kinney <michael.d.kinney@intel.com>
Thu, 1 Aug 2019 06:07:55 +0000 (23:07 -0700)
committerMichael D Kinney <michael.d.kinney@intel.com>
Tue, 6 Aug 2019 16:29:38 +0000 (09:29 -0700)
https://bugzilla.tianocore.org/show_bug.cgi?id=2046

Make sure all libs that should be dynamically linked
are dynamically linked when XCODE5 compiler is used.
A previous change introduced the following pragma:

    #pragma GCC visibility push (hidden)

When the EmulatorPkg is built using XCODE5 toolchain
for X64, this pragma is included and it generates a
linker error when building the Unix Host module.  This
change uses !defined(__APPLE__) to prevent the use of
this pragma when building EmulatorPkg/Unix/Host.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Andrew Fish <afish@apple.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
MdePkg/Include/X64/ProcessorBind.h

index b22cb226b059881af40587db79ef861502913105..6f65acd60939ef726b33e092f1b2880c7447ec51 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Processor or Compiler specific defines and types x64 (Intel 64, AMD64).\r
 \r
-  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>\r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
@@ -21,7 +21,7 @@
 #pragma pack()\r
 #endif\r
 \r
-#if defined(__GNUC__) && defined(__pic__) && !defined(USING_LTO)\r
+#if defined(__GNUC__) && defined(__pic__) && !defined(USING_LTO)  && !defined(__APPLE__)\r
 //\r
 // Mark all symbol declarations and references as hidden, meaning they will\r
 // not be subject to symbol preemption. This allows the compiler to refer to\r