From f942cf8dd612871c3009902325860e1d832a041d Mon Sep 17 00:00:00 2001
From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Date: Thu, 28 Dec 2017 10:20:30 -0800
Subject: [PATCH 2/3] Define _LIBCPP_BUILDING_LIBRARY during build to support
 using newer STL

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
(cherry picked from commit 7e73b0568532743d94470e0cf8617d0d39687efa)
---
 lib/buildit | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git libcxxabi-5.0.1.src/lib/buildit libcxxabi-5.0.1.src/lib/buildit
index f63acd0..508a805 100755
--- libcxxabi-5.0.1.src/lib/buildit
+++ libcxxabi-5.0.1.src/lib/buildit
@@ -32,7 +32,7 @@ EXTRA_FLAGS="-std=c++11 -stdlib=libc++ -fstrict-aliasing -Wstrict-aliasing=2 \
              -Wmissing-field-initializers -Wchar-subscripts -Wmismatched-tags \
              -Wmissing-braces -Wshorten-64-to-32 -Wsign-compare \
              -Wstrict-aliasing=2 -Wstrict-overflow=4 -Wunused-parameter \
-             -Wnewline-eof"
+             -Wnewline-eof -D_LIBCPP_BUILDING_LIBRARY"
 
 case $TRIPLE in
   *-apple-*)
-- 
2.15.1

