bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] When compiling on Debian 13.10, get link error


From: Jay Foad
Subject: Re: [Bug-apl] When compiling on Debian 13.10, get link error
Date: Sat, 28 Dec 2013 09:19:22 +0000

On 24 December 2013 18:29, Elias MÃ¥rtenson <address@hidden> wrote:
> On one of the systems I'm using (the only Debian 13.10 system), I'm always
> getting an error when linking. On other Linuxes (for example, my Arch system
> at work) this does not happen. The link error is below.
>
> I usually work around the problem by manually adding -lreadline to the link
> flags in the generated Makefile, but I'm sure there is a proper solution.
> Unfortunately I'm not good enough with autoconf to figure out why it fails.

I've seen the same thing. The problem is that -lreadline is currently
added to the link line before all the .o files. It should be added at
the end, after all the .o files.

I don't really understand automake, but I think the fix might be along
these lines in src/Makefile.am:

-apl_LDFLAGS  = $(GPROF_WANTED) $(LIBS) $(LIBREADLINE)
+apl_LDFLAGS  = $(GPROF_WANTED)
+apl_LDADD    = $(LIBS) $(LIBREADLINE)

Jay.



reply via email to

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