Complete.Org: Mailing Lists: Archives: freeciv-dev: November 1998:
Re: [Freeciv-Dev] Linker error?
Home

Re: [Freeciv-Dev] Linker error?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: Re: [Freeciv-Dev] Linker error?
From: Sverker Wiberg <sverkerw@xxxxxxxxxxxx>
Date: Tue, 10 Nov 1998 00:02:50 +0100

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



[Prev in Thread] Current Thread [Next in Thread]