freetype
[Top][All Lists]
Advanced

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

Re: [Freetype] Compiling freetype on uclinux


From: nafiton
Subject: Re: [Freetype] Compiling freetype on uclinux
Date: Fri, 27 Feb 2004 22:40:02 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007

Hi,

nafiton smith wrote:

Hello

I can not get linked the libraries because I am not able to pass the correct flags to the linker through libtool. This is what I get: m68k-elf-gcc -shared freetype.lo ftxkern.lo ftxgasp.lo ftxpost.lo ftxcmap.lo ftxsbit.lo ftxwidth.lo ftxerr18.lo ftxgsub.lo ftxgpos.lo ftxgdef.lo ftxopen.lo -lm -lc -Wl,-soname -Wl,libttf.so.2 -o .libs/libttf.so.2.2.0
/usr/local/m68k-elf/bin/ld.real: cannot find -lc
collect2: ld returned 1 exit status

This is the script I write to get the libraries compiled:

CC=m68k-elf-gcc \
CFLAGS="-O2 -D__uClinux__ -I/home/nafi/uClinux-dist/lib/uClibc/include -I/home/nafi/uClinux-dist/linux-2.4.x/include -m5307 -Wa,-S -Wa,-m5307 -msep-data " \ LDFLAGS="-Wl,-elf2flt -Wl,-move-rodata -L/home/nafi/uClinux-dist/lib/uClibc/lib -lc" \
./configure --prefix=/home/nafi/uClinux-dist/libfreetype/ \
   --build=i386-linux \
   --host=m68k-elf-linux \
   --target=m68k-elf-linux \
   --disable-nls

The compile process is taking CFLAGS for objects, but libtool is leaving LDFLAGS behind. I looked for what to change at configure and ltmain.sh , but I can not find how it works on this.

I changed the LDFLAGS on the script to:
LDFLAGS="-Wl,-elf2flt -Wl,-move-rodata " \
LIBS="-L/home/nafi/uClinux-dist/lib/uClibc/lib -lc" \

and now I get a library file, but when I try to use it, I get a lot of 'undefined reference to 'memcpy' , 'fopen',...

I think it is a problem with the libtool yet. I can see that when the libtool generates the library, it uses the LIBS parameter but it still does not use the LDFLAGS.

../libtool --mode=link m68k-elf-gcc -o libttf.la freetype.lo ftxkern.lo ftxgasp.lo ftxpost.lo ftxcmap.lo ftxsbit.lo ftxwidth.lo ftxerr18.lo ftxgsub.lo ftxgpos.lo ftxgdef.lo ftxopen.lo \ -rpath /home/jose/uclinux/uClinux-dist/libfreetype//lib \ -version-info 4:0:2 -lm -L/home/jose/uclinux/uClinux-dist/lib/uClibc/lib -lc
rm -fr .libs/libttf.la .libs/libttf.* .libs/libttf.*
m68k-elf-gcc -shared freetype.lo ftxkern.lo ftxgasp.lo ftxpost.lo ftxcmap.lo ftxsbit.lo ftxwidth.lo ftxerr18.lo ftxgsub.lo ftxgpos.lo ftxgdef.lo ftxopen.lo -lm -L/home/jose/uclinux/uClinux-dist/lib/uClibc/lib -lc -lc -Wl,-soname -Wl,libttf.so.2 -o .libs/libttf.so.2.2.0 /usr/local/m68k-elf/bin/ld.real: warning: cannot find entry symbol _start; defaulting to 80000074

And this last warning about _start symbol is really suspicious, isnĀ“t it? Any idea?

Thank you,
nafiton





reply via email to

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