Subject Linux & IB 6

I'm using IB6 under Windows, and everything is ok. I made some udf's
and I put the dll file in folder ..\UDF.

Now, I'm trying to install the IB6 under linux, but I have a problem
with the dll's.
The server works fine, but I can't work with databases that uses the
udf's that I build (in Windows environment), just because I didn't
have the dll file under linux.
My problem is to know how can I compile the source code of udf
library, that was build in Delphi, and create a dynamic library
compatible to linux.

There's any away to compile these library, or should I convert these
library to C language, and after compile these file with gcc
compiler to linux?

If anyone could help me...

Thanks for all