On 16 Mar 01, at 3:39, Frank Heckenbach wrote:
General questions: Is this option useful at all? Does someone (or some other Pascal compiler) use `$' in identifiers, so we should retain this for compatibility, or is it just a GCC relic that we can drop?
I have never seen it used in identifiers - and I have seen many Pascal compilers in my life time.
By default the libm.a library is include in the ld command line so I disable it, since the library is not provided.
Modifiction of gpc.c :
<< #define MATH_LIBRARY "-lm"
--
//#define MATH_LIBRARY "-lm"
#define MATH_LIBRARY ""
AFAIR, the same holds for MS-Windows (at least Mingw, not sure about CygWin). I think the setting of MATH_LIBRARY in ../config/i386/mingw32.h makes sure that -lm is not linked there without haveing to change gpc.c. The same should be possible for Mac OS X, I guess, in the appropriate config file. If you find it, you can send us that change, so we can include it...
An empty MATH_LIBRARY used to cause no end of problems when compiling GPC for Mingw (I remember having to edit gpc.c manually to make sure that (the empty Mingw) libm.a was linked). This problem has since disappeared, although I cannot remember how we dealt with it! The point is that you need to watch for this under OS X as well. It may not become a problem - or it might. If it does, all you need to is create an empty libm.a.
You might also need to create an "os-hacks.h" file for any special kludges that you might need to do under OS X.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) Author of: Chief's Installer Pro for Win32 http://www.bigfoot.com/~African_Chief/chief32.htm Email: African_Chief@bigfoot.com