llvm.org GIT mirror llvm / ecfe67c
Reapply majority of r55557 but with the changes to compilation flags disabled until issues with gcc 4.1 on linux 32-bit are resolved. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55636 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 11 years ago
4 changed file(s) with 31 addition(s) and 0 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
236239 # This option tells the Makefiles to produce verbose output.
237240 # It essentially prints the commands that make is executing
238241 #VERBOSE = 1
239239 KEEP_SYMBOLS := 1
240240 endif
241241 endif
242
243 #ifeq ($(ENABLE_VISIBILITY_INLINES_HIDDEN),1)
244 # CXX.Flags += -fvisibility-inlines-hidden
245 #endif
242246
243247 # IF REQUIRES_EH=1 is specified then don't disable exceptions
244248 ifndef REQUIRES_EH
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
977979
978980 dnl===-----------------------------------------------------------------------===
979981 dnl===
0 #
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 ])