StdLib maintainer,
I had to make the following changes to make this build work: >build -p
AppPkg/AppPkg.dsc -a X64 -t XCODE5
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Anderw Fish <[email protected]>
Thanks,
Andrew Fish
diff --git a/StdLib/Include/sys/cdefs_aout.h b/StdLib/Include/sys/cdefs_aout.h
index 2749918..d0b7e78 100644
--- a/StdLib/Include/sys/cdefs_aout.h
+++ b/StdLib/Include/sys/cdefs_aout.h
@@ -44,12 +44,12 @@
#define __weak_extern(sym) /* NOTHING */
#define __weak_reference(sym) /* NOTHING */
- #if !defined(__CC_ARM)
+ #if defined(__CC_ARM) || defined(__APPLE__)
+ #define __warn_references(sym,msg)
+ #else
#define __warn_references(sym,msg) \
__asm(".stabs \"" msg "\",30,0,0,0"); \
__asm(".stabs \"_" #sym "\",1,0,0,0");
- #else
- #define __warn_references(sym,msg)
#endif
#endif
#else /* __STDC__ */
diff --git a/StdLib/LibC/StdLib/Environs.c b/StdLib/LibC/StdLib/Environs.c
index 4080727..a41a347 100644
--- a/StdLib/LibC/StdLib/Environs.c
+++ b/StdLib/LibC/StdLib/Environs.c
@@ -120,7 +120,7 @@ _Exit(int status)
longjmp(gMD->MainExit, 0x55); // Get out of here. longjmp can't return
0. Use 0x55 for a non-zero value.
#ifdef __GNUC__
- __builtin__Exit(status); /* Keep GCC happy - never reached */
+ _Exit(status);
#endif
}
diff --git a/StdLib/StdLib.inc b/StdLib/StdLib.inc
index 6bdbb6f..1fd9a01 100644
--- a/StdLib/StdLib.inc
+++ b/StdLib/StdLib.inc
@@ -110,6 +110,7 @@
GCC:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE
RVCT:*_*_*_CC_FLAGS = --library_interface=none -DUEFI_C_SOURCE
-J$(WORKSPACE)/StdLib/Include -J$(WORKSPACE)/StdLib/Include/Arm
ARMGCC:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE
-Wno-unknown-pragmas -Wno-unused -Wno-format-zero-length
+ XCODE:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE
-Wno-unused-const-variable -Wno-string-compare -Wno-sometimes-uninitialized
!else
# The Build Options, below, are only used when building the Standard
Libraries
@@ -120,4 +121,5 @@
GCC:*_*_IA32_CC_FLAGS = -O0 -DUEFI_C_SOURCE
RVCT:*_*_*_CC_FLAGS = --library_interface=none -DUEFI_C_SOURCE
-J$(WORKSPACE)/StdLib/Include -J$(WORKSPACE)/StdLib/Include/Arm
ARMGCC:*_*_*_CC_FLAGS = -O0 -DUEFI_C_SOURCE -Wno-unknown-pragmas
-Wno-unused -Wno-format-zero-length
+ XCODE:*_*_*_CC_FLAGS = -O0 -DUEFI_C_SOURCE -Wno-unused-const-variable
-Wno-string-compare -Wno-sometimes-uninitialized
!endif
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel