Gabriel Dos Reis wrote:
> Hi,
> 
>   My first attempt to compile the lto branch met with resistance:
> 
> /home/gdr/redhat/lto.gcc/gcc/lto/lto-elf.c:27:20: error: libelf.h: No such 
> file or directory
> 
> 
> libelf (0.8.5-35) 

This libelf is too old, see michael matz's message.
You are going to have to grab 0.8.8 from the libelf homepage to compile
this ATM.


>is installed on my system in the standard include
> directory (/usr/include) as libelf/libelf.h.   
> 
> lto/lto-elf.c:27 currently says
> 
>    #include "libelf.h"
> 
> 
> Should that read
> 
>    #include <libelf/libelf.h>
> 

So, the thing is that other libelfs are directly installing their header
in /usr/include/libelf.h

(this include elfutils-libelf, solaris libelf, etc).

Thus, this probably need to be autoconf'd.

--Dan

Reply via email to