From ca3c1949781821e8cd9744d2477904d210a870dc Mon Sep 17 00:00:00 2001
From: andrew fish <afish@apple.com>
Date: Wed, 27 Aug 2014 10:52:25 -0700
Subject: [PATCH 1/3] EmulatorPkg:Unix: Add support for X11 on Mac OS X via
 XQuartz
To: edk2-devel@lists.sourceforge.net

Starting in OS X Mountain Lion X11 is not longer part of the OS install, so you must download it from http://xquartz.macosforge.org
To make XQuartz work with the EmulatorPkg an include path needs to be added. The build tools fail the build if you try to add an absolute inculde path to the X11 headers, so Unix/Host/X11IncludeHack, a symbolic link, was added to get the system building.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Anderw Fish <afish@apple.com>
---
 EmulatorPkg/Unix/Host/Host.inf       | 2 +-
 EmulatorPkg/Unix/Host/X11IncludeHack | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 120000 EmulatorPkg/Unix/Host/X11IncludeHack

diff --git a/EmulatorPkg/Unix/Host/Host.inf b/EmulatorPkg/Unix/Host/Host.inf
index dee2e0d..d0b4927 100644
--- a/EmulatorPkg/Unix/Host/Host.inf
+++ b/EmulatorPkg/Unix/Host/Host.inf
@@ -145,4 +145,4 @@
    XCODE:*_*_X64_DLINK_PATH == gcc
    XCODE:*_*_X64_DLINK_FLAGS == -o $(BIN_DIR)/Host -L/usr/X11R6/lib -lXext -lX11 -framework Carbon
    XCODE:*_*_X64_ASM_FLAGS == -g
-
+   XCODE:*_*_X64_CC_FLAGS = -I$(WORKSPACE)/EmulatorPkg/Unix/Host/X11IncludeHack
diff --git a/EmulatorPkg/Unix/Host/X11IncludeHack b/EmulatorPkg/Unix/Host/X11IncludeHack
new file mode 120000
index 0000000..f7ab103
--- /dev/null
+++ b/EmulatorPkg/Unix/Host/X11IncludeHack
@@ -0,0 +1 @@
+/opt/X11/include
\ No newline at end of file
-- 
1.8.5.2 (Apple Git-48)

