Cygwin sdl-config

Hello,

I would like to know why when I build SDL on cygwin, the sdl-config file
is generated for mingw (with -mno-cygwin flag and more). It should be
possible to add a --enable-nocygwin to configure, for people wanting a
mingw SDL on cygwin, and those wanting pure cygwin build could have it
easily.–
Patrice Mandin
WWW: http://membres.lycos.fr/pmandin/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux

Hello,

I would like to know why when I build SDL on cygwin, the sdl-config file
is generated for mingw (with -mno-cygwin flag and more). It should be
possible to add a --enable-nocygwin to configure, for people wanting a
mingw SDL on cygwin, and those wanting pure cygwin build could have it
easily.

Are you writing code which requires the POSIX emulation layer of Cygwin?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Le Thu, 05 Feb 2004 11:44:34 -0800
Sam Lantinga a ?crit:

I would like to know why when I build SDL on cygwin, the sdl-config
file is generated for mingw (with -mno-cygwin flag and more). It
should be possible to add a --enable-nocygwin to configure, for people
wanting a mingw SDL on cygwin, and those wanting pure cygwin build
could have it easily.

Are you writing code which requires the POSIX emulation layer of Cygwin?

Yes, the Atari emulator ARAnyM http://aranym.sourceforge.net requires some
POSIX stuff from cygwin to be build. Using pure mingw32 or cygwin with
mingw32 is not possible to compile it for the moment. And building pure
cygwin binaries for GPL software is not a problem.–
Patrice Mandin
WWW: http://membres.lycos.fr/pmandin/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux

Hello !

I think there is an easier way then building SDL special for CYGWIN:

$ sdl-config --cflags
-I/usr/local/include/SDL -Dmain=SDL_main -I/usr/include/mingw -DWIN32
-Uunix -mno-cygwin

Instead of using sdl-config --cflags in your Makefile use something like:

-I/usr/local/include/SDL -Dmain=SDL_main -DWIN32 -Uunix

Maybe you can remove -Dmain= SDL_main also.

Do the same thing for sdl-config --libs.

That way i was able to compile flPhoto on CYGWIN which needs
some POSIX Stuff using my normal Win32 FLTK build.
FLTK uses when building also the -mno-cygwin flag.

CU

Patrice Mandin schrieb:> Le Thu, 05 Feb 2004 11:44:34 -0800

Sam Lantinga a ?crit:

I would like to know why when I build SDL on cygwin, the sdl-config
file is generated for mingw (with -mno-cygwin flag and more). It
should be possible to add a --enable-nocygwin to configure, for people
wanting a mingw SDL on cygwin, and those wanting pure cygwin build
could have it easily.

Are you writing code which requires the POSIX emulation layer of Cygwin?

Yes, the Atari emulator ARAnyM http://aranym.sourceforge.net requires some
POSIX stuff from cygwin to be build. Using pure mingw32 or cygwin with
mingw32 is not possible to compile it for the moment. And building pure
cygwin binaries for GPL software is not a problem.

I think there is an easier way then building SDL special for CYGWIN:

$ sdl-config --cflags
-I/usr/local/include/SDL -Dmain=SDL_main -I/usr/include/mingw -DWIN32
-Uunix -mno-cygwin

Instead of using sdl-config --cflags in your Makefile use something like:

-I/usr/local/include/SDL -Dmain=SDL_main -DWIN32 -Uunix

Maybe you can remove -Dmain= SDL_main also.

Do the same thing for sdl-config --libs.

That way i was able to compile flPhoto on CYGWIN which needs
some POSIX Stuff using my normal Win32 FLTK build.
FLTK uses when building also the -mno-cygwin flag.

This is what I currently do (modifying sdl-config to suit my needs). I just
wanted to say that it could be done at configure time.

Hello !

This is what I currently do (modifying sdl-config to suit my needs). I just
wanted to say that it could be done at configure time.

Not configure, just add an option to sdl-config like --use-cygwin.

CU