[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 proble=
m 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 lo=
oks =
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 car=
e =
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=F8rupv=E6nget 10
DK-7650 B=F8vlingbjerg
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/lists/fpc-pascal/attachments/20061212/1e5=
dc39c/basmUlibc.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Beas-cprt0.as
Type: application/octet-stream
Size: 3510 bytes
Desc: not available
Url : http://lists.freepascal.org/lists/fpc-pascal/attachments/20061212/1e5=
dc39c/Beas-cprt0.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/lists/fpc-pascal/attachments/20061212/1e5=
dc39c/fpc.obj
More information about the fpc-pascal
mailing list