llvm.org GIT mirror llvm / 0783f0d
Revert r55557, it is causing linking failures on 32bit linux. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55628 91177308-0d34-0410-b5e6-96231b3b80d8 Matthijs Kooijman 11 years ago
4 changed file(s) with 0 addition(s) and 31 deletion(s). Raw diff Collapse all Expand all
233233 # Do we want to build with position independent code?
234234 ENABLE_PIC := @ENABLE_PIC@
235235
236 # Use -fvisibility-inlines-hidden?
237 ENABLE_VISIBILITY_INLINES_HIDDEN := @ENABLE_VISIBILITY_INLINES_HIDDEN@
238
239236 # This option tells the Makefiles to produce verbose output.
240237 # It essentially prints the commands that make is executing
241238 #VERBOSE = 1
238238 LD.Flags += -g
239239 KEEP_SYMBOLS := 1
240240 endif
241 endif
242
243 ifeq ($(ENABLE_VISIBILITY_INLINES_HIDDEN),1)
244 CXX.Flags += -fvisibility-inlines-hidden
245241 endif
246242
247243 # IF REQUIRES_EH=1 is specified then don't disable exceptions
974974 AC_MSG_ERROR([Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings.])
975975 fi
976976
977 dnl Determine if the compiler supports -fvisibility-inlines-hidden.
978 AC_CXX_USE_VISIBILITY_INLINES_HIDDEN
979977
980978 dnl===-----------------------------------------------------------------------===
981979 dnl===
+0
-22
autoconf/m4/visibility_inlines_hidden.m4 less more
None #
1 # Determine if the compiler accepts -fvisibility-inlines-hidden
2 #
3 # This macro is specific to LLVM.
4 #
5 AC_DEFUN([AC_CXX_USE_VISIBILITY_INLINES_HIDDEN],
6 [AC_CACHE_CHECK([for compiler -fvisibility-inlines-hidden option],
7 [llvm_cv_cxx_visibility_inlines_hidden],
8 [ AC_LANG_PUSH([C++])
9 oldcxxflags="$CXXFLAGS"
10 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
11 AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
12 [llvm_cv_cxx_visibility_inlines_hidden=yes],[llvm_cv_cxx_visibility_inlines_hidden=no])
13 CXXFLAGS="$oldcxxflags"
14 AC_LANG_POP([C++])
15 ])
16 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
17 AC_SUBST([ENABLE_VISIBILITY_INLINES_HIDDEN],[1])
18 else
19 AC_SUBST([ENABLE_VISIBILITY_INLINES_HIDDEN],[0])
20 fi
21 ])