From f2f970ff409e0c738a86f8bc20baf0310782518d Mon Sep 17 00:00:00 2001
From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Date: Thu, 28 Dec 2017 23:06:13 -0800
Subject: [PATCH 3008/3008] buildit: Fix CFLAGS for Leopard and Snow Leopard to
 include _LIBCPP_BUILDING_LIBRARY

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

diff --git libcxx-5.0.1.src/lib/buildit libcxx-5.0.1.src/lib/buildit
index c10f876a7..e1ef3381e 100755
--- libcxx-5.0.1.src/lib/buildit
+++ libcxx-5.0.1.src/lib/buildit
@@ -63,7 +63,7 @@ case $TRIPLE in
 
     if [[ "$MACOSX_DEPLOYMENT_TARGET" == 10.[456] ]]
     then
-        EXTRA_FLAGS="-nostdinc++ -std=c++11 -U__STRICT_ANSI__"
+        EXTRA_FLAGS="${EXTRA_FLAGS} -U__STRICT_ANSI__"
         LDSHARED_FLAGS="-o libc++.1.dylib \
             -dynamiclib -nodefaultlibs \
             -current_version ${RC_ProjectSourceVersion} \
-- 
2.15.1

