Wed, 19 Jan 2011 00:07:43 -0800 Greg Jandl to SDL
Sam Lantinga <slouken@libsdl.org> [Wed, 19 Jan 2011 00:07:43 -0800] rev 5030
Greg Jandl to SDL I *think* the patch below works correctly: sdl-config gets the -march flag and SDL builds fine. Perhaps there's a better way to get the -march flag into both CFLAGS and SDL_FLAGS w/o dragging along more cruft, but adding it to BASE_CFLAGS seemed the best bet to my eyes.
Tue, 18 Jan 2011 22:40:45 -0800 Greg Jandl to SDL
Sam Lantinga <slouken@libsdl.org> [Tue, 18 Jan 2011 22:40:45 -0800] rev 5029
Greg Jandl to SDL I did some digging, and I think I've found a better solution. By including some additional .m4 macros in the acinclude directory (http://www.gnu.org/software/autoconf-archive/ax_check_compiler_flags.html, http://www.gnu.org/software/autoconf-archive/ax_gcc_archflag.html and http://www.gnu.org/software/autoconf-archive/ax_gcc_x86_cpuid.html) then using the patch below (same as previous patch + one line change to configure.in), SDL will build correctly out of the box. The arch can then be overridden by --with-gcc-arch=<arch> (most will probably want to build with i686 there for general distribution) or --without-gcc-arch, to disable setting the arch all together. On my Atom netbook, I get -march=PentiumPro by default, which works great, as does --with-gcc-arch=i686.
Tue, 18 Jan 2011 22:10:37 -0800 Whoops, good catch from Greg Jandl
Sam Lantinga <slouken@libsdl.org> [Tue, 18 Jan 2011 22:10:37 -0800] rev 5028
Whoops, good catch from Greg Jandl
Tue, 18 Jan 2011 17:23:44 -0800 Fixed building with the latest iOS SDK (4.2)
Sam Lantinga <slouken@libsdl.org> [Tue, 18 Jan 2011 17:23:44 -0800] rev 5027
Fixed building with the latest iOS SDK (4.2)
Tue, 18 Jan 2011 16:55:03 -0800 Fixed building with the latest iOS SDK (4.2)
Sam Lantinga <slouken@libsdl.org> [Tue, 18 Jan 2011 16:55:03 -0800] rev 5026
Fixed building with the latest iOS SDK (4.2)
Tue, 18 Jan 2011 16:47:14 -0800 Fixed missing source files in static library target
Sam Lantinga <slouken@libsdl.org> [Tue, 18 Jan 2011 16:47:14 -0800] rev 5025
Fixed missing source files in static library target Fixed building SDL test programs
Tue, 18 Jan 2011 15:07:53 -0800 Not all MinGW compilers have intrin.h, so we'll only use this with Visual Studio.
Sam Lantinga <slouken@libsdl.org> [Tue, 18 Jan 2011 15:07:53 -0800] rev 5024
Not all MinGW compilers have intrin.h, so we'll only use this with Visual Studio. That's actually okay, since gcc has the builtin atomic intrinsics. :)
Tue, 18 Jan 2011 15:02:59 -0800 Fixed building with the latest iOS SDK (4.2)
Sam Lantinga <slouken@libsdl.org> [Tue, 18 Jan 2011 15:02:59 -0800] rev 5023
Fixed building with the latest iOS SDK (4.2)
Tue, 18 Jan 2011 15:00:56 -0800 Fixed building with the latest iOS SDK (4.2)
Sam Lantinga <slouken@libsdl.org> [Tue, 18 Jan 2011 15:00:56 -0800] rev 5022
Fixed building with the latest iOS SDK (4.2)
Tue, 18 Jan 2011 14:57:39 -0800 Fixed build against 10.4 SDK
Sam Lantinga <slouken@libsdl.org> [Tue, 18 Jan 2011 14:57:39 -0800] rev 5021
Fixed build against 10.4 SDK
(0) -3000 -1000 -300 -100 -10 +10 +100 +300 +1000 +3000 tip