4364 # definitions. It is replaced with custom functionality when building |
4362 # definitions. It is replaced with custom functionality when building |
4365 # custom sources. |
4363 # custom sources. |
4366 #CUSTOM_AUTOCONF_INCLUDE |
4364 #CUSTOM_AUTOCONF_INCLUDE |
4367 |
4365 |
4368 # Do not change or remove the following line, it is needed for consistency checks: |
4366 # Do not change or remove the following line, it is needed for consistency checks: |
4369 DATE_WHEN_GENERATED=1432629750 |
4367 DATE_WHEN_GENERATED=1433337614 |
4370 |
4368 |
4371 ############################################################################### |
4369 ############################################################################### |
4372 # |
4370 # |
4373 # Initialization / Boot-strapping |
4371 # Initialization / Boot-strapping |
4374 # |
4372 # |
41835 ;; |
41833 ;; |
41836 fastdebug ) |
41834 fastdebug ) |
41837 # no adjustment |
41835 # no adjustment |
41838 ;; |
41836 ;; |
41839 slowdebug ) |
41837 slowdebug ) |
41840 # Add runtime stack smashing and undefined behavior checks |
41838 # Add runtime stack smashing and undefined behavior checks. |
41841 CFLAGS_DEBUG_OPTIONS="-fstack-protector-all --param ssp-buffer-size=1" |
41839 # Not all versions of gcc support -fstack-protector |
41842 CXXFLAGS_DEBUG_OPTIONS="-fstack-protector-all --param ssp-buffer-size=1" |
41840 STACK_PROTECTOR_CFLAG="-fstack-protector-all" |
|
41841 |
|
41842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$STACK_PROTECTOR_CFLAG\"" >&5 |
|
41843 $as_echo_n "checking if compiler supports \"$STACK_PROTECTOR_CFLAG\"... " >&6; } |
|
41844 supports=yes |
|
41845 |
|
41846 saved_cflags="$CFLAGS" |
|
41847 CFLAGS="$CFLAGS $STACK_PROTECTOR_CFLAG" |
|
41848 ac_ext=c |
|
41849 ac_cpp='$CPP $CPPFLAGS' |
|
41850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
41851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
41852 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
41853 |
|
41854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
41855 /* end confdefs.h. */ |
|
41856 int i; |
|
41857 _ACEOF |
|
41858 if ac_fn_c_try_compile "$LINENO"; then : |
|
41859 |
|
41860 else |
|
41861 supports=no |
|
41862 fi |
|
41863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
41864 ac_ext=cpp |
|
41865 ac_cpp='$CXXCPP $CPPFLAGS' |
|
41866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
41867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
41868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
41869 |
|
41870 CFLAGS="$saved_cflags" |
|
41871 |
|
41872 saved_cxxflags="$CXXFLAGS" |
|
41873 CXXFLAGS="$CXXFLAG $STACK_PROTECTOR_CFLAG" |
|
41874 ac_ext=cpp |
|
41875 ac_cpp='$CXXCPP $CPPFLAGS' |
|
41876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
41877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
41878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
41879 |
|
41880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
41881 /* end confdefs.h. */ |
|
41882 int i; |
|
41883 _ACEOF |
|
41884 if ac_fn_cxx_try_compile "$LINENO"; then : |
|
41885 |
|
41886 else |
|
41887 supports=no |
|
41888 fi |
|
41889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
41890 ac_ext=cpp |
|
41891 ac_cpp='$CXXCPP $CPPFLAGS' |
|
41892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
41893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
41894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
41895 |
|
41896 CXXFLAGS="$saved_cxxflags" |
|
41897 |
|
41898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 |
|
41899 $as_echo "$supports" >&6; } |
|
41900 if test "x$supports" = "xyes" ; then |
|
41901 : |
|
41902 else |
|
41903 STACK_PROTECTOR_CFLAG="" |
|
41904 fi |
|
41905 |
|
41906 |
|
41907 CFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" |
|
41908 CXXFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" |
41843 ;; |
41909 ;; |
41844 esac |
41910 esac |
41845 fi |
41911 fi |
41846 |
|
41847 |
|
41848 |
41912 |
41849 # Optimization levels |
41913 # Optimization levels |
41850 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then |
41914 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then |
41851 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" |
41915 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" |
41852 |
41916 |