List Info

Thread: crosscompiling a Linux binary on NetBSD




crosscompiling a Linux binary on NetBSD
country flaguser name
United States
2007-08-27 13:19:55
I need to compile a program on my NetBSD boxes that will
link against
a Linux library, which is only available in binary form.  I
am
guessing that I need to compile the entire program (i.e., my
own part
of the code) as a Linux binary, but would welcome
information on how
to do otherwise.

In order to build a Linux binary on a NetBSD box, I presume
I need to
arrange for gcc to cross-compile somehow.  Does anyone have
clear
pointers for how to accomplish that successfully?

Thanks for your help.

Cheers,
Brook

Re: crosscompiling a Linux binary on NetBSD
country flaguser name
Canada
2007-08-27 15:18:11
An alternative is to install wip/suse100_devel.  The toolset
is in
/usr/pkg/emul/linux/usr/bin/.  There's also wip/suse100_gdb,
which
kinda works.

Brian.

On 2007.08.27 12:19:55 -0600, Brook Milligan wrote:
> I need to compile a program on my NetBSD boxes that
will link against
> a Linux library, which is only available in binary
form.  I am
> guessing that I need to compile the entire program
(i.e., my own part
> of the code) as a Linux binary, but would welcome
information on how
> to do otherwise.
> 
> In order to build a Linux binary on a NetBSD box, I
presume I need to
> arrange for gcc to cross-compile somehow.  Does anyone
have clear
> pointers for how to accomplish that successfully?
> 
> Thanks for your help.
> 
> Cheers,
> Brook

-- 
  Brian de Alwis | Software Practices Lab | UBC | http://www.cs.ubc.ca/~bsd/

      "Amusement to an observing mind is study." -
Benjamin Disraeli

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )