Mr Crispin, thanks for your help. Moreover, I was forgetting to do 'make cris-axis-linux-gnu' !!!! It was g++ whih was called...
Sorry to bother you for nothing! Pascal --- In [email protected], John Crispin <[EMAIL PROTECTED]> wrote: > > it means that your lib is not PIC > > use the -fPIC option on $(CC) when compiling the .o file that you > later put into your .a > > > > Quoting pascal73fr <[EMAIL PROTECTED]>: > > > Hello, > > > > I have built a library using variable $(AR) in a Makefile (FoxBoard > > envrionnement rev 108). > > It seems that cris-ar is run. I have a file "mylib.a" but when I try > > to include this lib into my project, I have the following message: > > "Relocation in generic elf". The last error is "bad file format"... > > > > Does the cris-linker only expect elf library format ? > > How to make a makefile with to generate the right library format? > > > > Thanks for your help. > > > > > > > > >
