[SDL] Building without -mno_cygwin
Ben Wilhelm
zorba-sdl-dev at pavlovian.net
Mon May 7 08:10:30 PDT 2007
I'm trying to build SDL on Cygwin without -mno_cygwin. I seem to have
mostly gotten it working - it builds and runs fine without any need for
that flag. Is there a standard SDL test suite I can run? Also, who would
I talk to to get my (as yet not quite complete, but working on it) patch
submitted?
The reason I wanted this is because -mno_cygwin is kind of a hack to
sidestep Cygwin's libraries, and if you use it, any libraries you want
to use afterwards must be specially built with that flag. Letting it
build natively without -mno_cygwin would let it integrate entirely into
the Cygwin framework, as well as letting it be included under the Cygwin
package manager. (If I can get this added to SDL, the next thing I'll do
is try to get it added under the Cygwin package manager.)
Specifically, I've had to make my own custom builds of both libogg and
boost in order to make my game function under Cygwin. Obviously this
isn't quite ideal, and this (surprisingly simple so far) patch of mine
lets my game run without a flaw with the native Boost (I have libogg
disabled at the moment since I'll need to rebuild it, but I don't
foresee any issues.)
My patch is to the 1.3.0 branch, and I'm not sure how maintained that
currently is. I ran into a huge number of errors trying to make it for
1.2.1 and decided to see if 1.3.0 was easier. I could try backporting it
to 1.2.1 if anyone wanted me to.
If there's interest, I'll clean it up and post it on the list. It's
really quite small and appears to work great.
-Ben
More information about the SDL
mailing list