components/llvm/patches/004-configure.ac.patch
author Stefan Teleman <stefan.teleman@oracle.com>
Wed, 10 Feb 2016 11:54:12 -0800
changeset 5434 9f55c805ce9d
permissions -rw-r--r--
PSARC/2013/188 Clang/LLVM 15777690 clang/llvm compiler infrastructure in Solaris 21851513 severe memory corruption in the LLVM command-line parsing module 22031298 toxic bugs in LLVM ilist/plist end up eliminating entire MachineBasicBlocks 22065707 LLVM SPARC assembler generator emits wrong ELF Section flags 22346218 LLVM's assembler printer on SPARC needs a lot of work 21870061 partial template specializations in CommandLine.h are buggy 21874261 the Google Test Harness doesn't know how to count threads in Solaris 21697459 memory corruption in LLVM IR Code Generator 21341968 llc on SPARC should not need to be passed -march=sparc or -march=sparcv9 21870103 TableGen makes incorrect assumptions about anonymous namespace instantiation 21870087 naming convention for the InputFile key is inconsistent across LLVM utilities 21870099 128 bytes for a filesystem path is definitely not enough 21870067 lli makes incorrect assumptions about anonymous namespace instantiation order 21870065 llc makes incorrect assumptions about anonymous namespace instantiation order 21870283 llvm::sys::Process::GetArgumentVector should overload for std::vector 21874221 clang C++ does not properly initialize the C++ Standard Library's iostreams

# Solaris autoconf-based build.
# https://llvm.org/bugs/show_bug.cgi?id=24641
--- autoconf/configure.ac	2015-05-01 21:17:33.000000000 -0700
+++ autoconf/configure.ac	2015-06-01 09:30:27.734038335 -0700
@@ -1486,8 +1486,11 @@
 fi
 
 dnl mallinfo is optional; the code can compile (minus features) without it
+dnl Explicitly disable on Solaris.
+if test "$llvm_cv_target_os_type" != "SunOS" ; then
 AC_SEARCH_LIBS(mallinfo,malloc,AC_DEFINE([HAVE_MALLINFO],[1],
                [Define if mallinfo() is available on this platform.]))
+fi
 
 dnl pthread locking functions are optional - but llvm will not be thread-safe
 dnl without locks.
@@ -1965,7 +1968,10 @@
 fi
 
 dnl Determine whether the compiler supports -fvisibility-inlines-hidden.
+dnl Explicitly disable on Solaris.
+if test "$llvm_cv_target_os_type" != "SunOS" ; then
 AC_CXX_USE_VISIBILITY_INLINES_HIDDEN
+fi
 
 dnl Determine linker rpath flag
 if test "$llvm_cv_link_use_r" = "yes" ; then