how to use linux .so in freebsd application

Chicky ShnoodleSoup chickyshnoodlesoup at gmail.com
Wed Aug 24 23:46:24 GMT 2005


I guess I found the answer to my question (thanks Google Groups!):

>On Fri, May 27, 2005 at 03:10:13PM -0700, Simeon Nifos wrote:
>> Hallo everybody,
>>
>> 1:) Suppose I have a Linux Library library.so.=20
>> And I want to link it with my main.c compiled
>> in FreeBSD. How can I achieve that?
>
>You can't. You may not need to though. What are you really trying to
>achieve? :)
>
>Kris
>

and that's you can't use a linux library from a freebsd program :(

C


On 8/22/05, Chicky ShnoodleSoup <chickyshnoodlesoup at gmail.com> wrote:
> Hi,
> 
> Thanks to the linux binary compatibility
> (
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu-lbc-install.html
),
> I am able to run a linux application using the linux dynamic library
> on a freebsd machine.
> 
> Now I am trying to get a freebsd application (same application but
> compiled on freebsd) using the linux .so (don't have the source to
> compile it on freebsd) running on freebsd.
> 
> Is that possible? if yes, how to do it?
> How to tell the compiler to use freebsd libraries for the application
> and the linux ones for the linux .so?
> 
> Thanks,
> C
>


More information about the freebsd-questions mailing list