Tried to build grx-2.4 for DJGPP using gcc-3.0 20010314. After modifying src/bgi/text7.c (gcc-3.0 20010314 miscompiles it with -O3 -fomit-frame-pointer) to workaround problem, all seems to work.
Can you provide the diff for the workaround (or can we expect that gcc will be fixed)?
Some comments about results.
It seems that it's better to check for __DJGPP__ instead of __GO32__ (I don't know about DJGPP v1, but we're removing support for it anyway). See patch.
OK, I will apply the pach (__GO32__ was necessary for DJGPP v1), and I will merge src/makebase.dj and src/makefile.dj2 in next release.
gcc-3.0 20010314 miscompiles src/bgi/text7 with '-O3 -fomit-frame-pointer' . Do we really need to use -O6 -fomit--frame-pointer to build optimized library? How much we're getting from that? Maybe it would be enough to use simply -O2? I sent bug report about this problem to gcc-bugs mailing list.
Really I don't know what -O6 means, the gcc docs don't say nothing about -O6. And note that we are using it in the four plattforms. So I can change it if you think is OK.
grx24/makedefs contains definition of default font path (fortunatelly commented out ...) : strcat(getenv("DJDIR"),"/contrib/grx24/fonts") which modifies value returned bu getenv() (but it must not be modified).
This was a contribution by Maurice Lombardi, but I commented it out because I prefer to set the environment variable (or not set it at all to prove test programs).
Thanks, Andris.
M.Alvarez