summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-03-02 21:55:03 +0000
committerEric Fiselier <eric@efcs.ca>2017-03-02 21:55:03 +0000
commitc7051e706ff3014defb8df9a70fefd4b536f5830 (patch)
treeed0cacf39a7cd59f24b1848f3b2c6ebf556abaa6
parente720feb1c612654c90a8b476778d89dbf3eb2e41 (diff)
downloadbcm5719-llvm-c7051e706ff3014defb8df9a70fefd4b536f5830.tar.gz
bcm5719-llvm-c7051e706ff3014defb8df9a70fefd4b536f5830.zip
Work around GCC linking errors within libc++abi due to missing new/delete definitions
llvm-svn: 296822
-rw-r--r--libcxx/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/libcxx/CMakeLists.txt b/libcxx/CMakeLists.txt
index 03e0f68db9c..45ef0c01fde 100644
--- a/libcxx/CMakeLists.txt
+++ b/libcxx/CMakeLists.txt
@@ -159,7 +159,12 @@ option(LIBCXX_ENABLE_ABI_LINKER_SCRIPT
set(ENABLE_NEW_DELETE_DEFAULT ON)
if (LIBCXXABI_ENABLE_NEW_DELETE_DEFINITIONS)
- set(ENABLE_NEW_DELETE_DEFAULT OFF)
+# FIXME: This option should default to off. Unfortunatly GCC 4.9 fails to link
+# programs to due undefined references to new/delete in libc++abi so to work
+# around this libc++abi currently defaults LIBCXXABI_ENABLE_NEW_DELETE_DEFINITIONS
+# to ON. Once the GCC bug has been worked around this option should be changed
+# back to OFF.
+ set(ENABLE_NEW_DELETE_DEFAULT ON)
endif()
option(LIBCXX_ENABLE_NEW_DELETE_DEFINITIONS
OpenPOWER on IntegriCloud