Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2001:
[Freeciv-Dev] Re: readline 4.2
Home

[Freeciv-Dev] Re: readline 4.2

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Greg Wooledge <greg@xxxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: readline 4.2
From: Thue <thue@xxxxxxx>
Date: Fri, 4 May 2001 01:07:55 +0200

On Monday 30 April 2001 00:11, Greg Wooledge wrote:
> Erik Sigra (sigra@xxxxxxx) wrote:
> > Thanks. I modified configure.in and it worked. The civserver command line
> > is so much nicer now! I replaced "-lreadline" with "-lncurses -lreadline"
> > and then with "-lreadline -lcurses". Both variants worked.
>
> That's linker dependent.  The GNU ld doesn't care about the order in which
> libraries appear, but older versions of Unix ld do.
>
> > Since you seem to know
> > this stuff, could you please make a patch for configure.in?
>
> Well, here's a rough one.  It might not handle the non-GNU ld cases
> properly, or the non-ncurses cases (in other words, I didn't test it
> on anything but my Debian system).  But it might be useful as the basis
> for a better patch....
>
> I ripped some of the termcap detection code from LAME, which is GPL.
> So there shouldn't be any license problems.

Perhaps it would be nicer if you first try linking with the readline lib, 
then if that fails find the apropriate extra lib, and then try again.
Somehow, just linking with the lib in any case seems ugly to me.

-Thue


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: readline 4.2, Thue <=