[fpc-pascal] Re: Threads

Carsten Bager carsten at beas.dk
Tue Dec 12 15:23:18 CET 2006


> > Date: Tue, 12 Dec 2006 10:04:48 +0100
> > From: "Carsten Bager" <carsten at beas.dk>
> 
> > On the Arm Linux platform I am using a uLibC library
> > instead of the normal C library (I do not think that this is the problem but ??)
> > .
> 
> How do you linked your binary to uLibC instead of standard libC ? You
I just renamed the uLibC lib to libc
> were cross compiling right? 
Yes
>Is is possible to tell FPC which libc to
> use ?

Yes and No
In the FPC.CFG (attached) I tells the fpc compiler where to look, but it looks 
after libc
I just renamed uLibC to libc

I have ajusted the startup file cprt0.as (attached).
The fpc program looks after the c lib loader. a command like this takes care 
of that

ln -sf /lib/ld-uClibc-0.9.27.so /lib/ld-linux.so.2 

Now the program uses the ulibc loader.
It works

> Look here: http://uclibc.org/other_libs.html
> Are there many FPC functions that will use a libc function instead of
> a system call (except the LibC unit) ?
threads
> 
> Thanks.
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal

-- 
Carsten Bager
BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 9788 5222 Fax : +45 9788 5434
www.beas.dk


-------------- next part --------------
A non-text attachment was scrubbed...
Name: basmUlibc.bat
Type: application/octet-stream
Size: 39 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20061212/1e5dc39c/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Beas-cprt0.as
Type: application/octet-stream
Size: 3511 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20061212/1e5dc39c/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fpc.cfg
Type: application/octet-stream
Size: 3403 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20061212/1e5dc39c/attachment-0002.obj>


More information about the fpc-pascal mailing list