components/llvm/patches/004-configure.ac.patch
changeset 5434 9f55c805ce9d
equal deleted inserted replaced
5428:3c05d530e67e 5434:9f55c805ce9d
       
     1 # Solaris autoconf-based build.
       
     2 # https://llvm.org/bugs/show_bug.cgi?id=24641
       
     3 --- autoconf/configure.ac	2015-05-01 21:17:33.000000000 -0700
       
     4 +++ autoconf/configure.ac	2015-06-01 09:30:27.734038335 -0700
       
     5 @@ -1486,8 +1486,11 @@
       
     6  fi
       
     7  
       
     8  dnl mallinfo is optional; the code can compile (minus features) without it
       
     9 +dnl Explicitly disable on Solaris.
       
    10 +if test "$llvm_cv_target_os_type" != "SunOS" ; then
       
    11  AC_SEARCH_LIBS(mallinfo,malloc,AC_DEFINE([HAVE_MALLINFO],[1],
       
    12                 [Define if mallinfo() is available on this platform.]))
       
    13 +fi
       
    14  
       
    15  dnl pthread locking functions are optional - but llvm will not be thread-safe
       
    16  dnl without locks.
       
    17 @@ -1965,7 +1968,10 @@
       
    18  fi
       
    19  
       
    20  dnl Determine whether the compiler supports -fvisibility-inlines-hidden.
       
    21 +dnl Explicitly disable on Solaris.
       
    22 +if test "$llvm_cv_target_os_type" != "SunOS" ; then
       
    23  AC_CXX_USE_VISIBILITY_INLINES_HIDDEN
       
    24 +fi
       
    25  
       
    26  dnl Determine linker rpath flag
       
    27  if test "$llvm_cv_link_use_r" = "yes" ; then