Re: [Freeciv-Dev] Linker error?
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
David Pfitzner wrote:
> I submitted a patch partially included below, to allow compilation on a
> system where configure didn't find strerror.
> Apparently the patch worked, but as it stands its probably not suitable
> for inclusion to CVS, because it doesn't work with Imakefile and
> Makefile.noimake. Well, that is, it doesn't use the real strerror,
> in those cases because they don't define HAVE_STRERROR (naturally).
>
> Any suggestions about getting around this? I suppose either ch
> anging the tests in mystrerror to try and see if we're using configure,
> or have the non-configure makefiles (customizably) define HAVE_STRERROR
> themselves, or ... ?
I believe that the customary autoconf way to do things like this is by
conditionally compiling and linking with (in this case) 'strerror.c'.
/Sverker
|
|