config.lib
changeset 7406 69bfb4b909e8
parent 7330 eb4dbf4a89ff
child 7424 40212c733e38
equal deleted inserted replaced
7405:2fd57f130eca 7406:69bfb4b909e8
   834 	#  On most places we don't see how to fix it, and it doesn't
   834 	#  On most places we don't see how to fix it, and it doesn't
   835 	#  break anything. So disable strict-aliasing to make the
   835 	#  break anything. So disable strict-aliasing to make the
   836 	#  compiler all happy.
   836 	#  compiler all happy.
   837 	if [ $cc_version -ge 40 ]; then
   837 	if [ $cc_version -ge 40 ]; then
   838 		CFLAGS="$CFLAGS -fno-strict-aliasing"
   838 		CFLAGS="$CFLAGS -fno-strict-aliasing"
       
   839 	fi
       
   840 
       
   841 	# GCC 4.2+ automatically assumes that signed overflows do
       
   842 	# not occur in signed arithmetics, whereas we are not
       
   843 	# sure that they will not happen. It furthermore complains
       
   844 	# about it's own optimized code in some places.
       
   845 	if [ $cc_version -ge 42 ]; then
       
   846 		CFLAGS="$CFLAGS -fno-strict-overflow"
   839 	fi
   847 	fi
   840 
   848 
   841 	if [ "$os" != "CYGWIN" ] && [ "$os" != "FREEBSD" ] && [ "$os" != "OPENBSD" ] && [ "$os" != "MINGW" ] && [ "$os" != "MORPHOS" ] && [ "$os" != "OSX" ] && [ "$os" != "WINCE" ] && [ "$os" != "PSP" ] && [ "$os" != "OS2" ]; then
   849 	if [ "$os" != "CYGWIN" ] && [ "$os" != "FREEBSD" ] && [ "$os" != "OPENBSD" ] && [ "$os" != "MINGW" ] && [ "$os" != "MORPHOS" ] && [ "$os" != "OSX" ] && [ "$os" != "WINCE" ] && [ "$os" != "PSP" ] && [ "$os" != "OS2" ]; then
   842 		LIBS="$LIBS -lpthread"
   850 		LIBS="$LIBS -lpthread"
   843 		LIBS="$LIBS -lrt"
   851 		LIBS="$LIBS -lrt"