Is it possible to compile for BSD Natively? (Open/Free)

Previous topic - Next topic

diceless

I know that it's a platform more obscure than linux and that it does have a linux compatibility layer but is it possible to compile programs for native BSD OS's in some way outside of or in addition to the built-in compiler?

Schranz0r

if linuxprograms run on that OS you can compile a simple linuxprogram...
I see no problem at all o.O
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Kitty Hello

Bsd should be elf,x86. So the Linux portmight run.

diceless

Quote from: Schranz0r on 2012-Apr-14
if linuxprograms run on that OS you can compile a simple linuxprogram...
I see no problem at all o.O

The compatibility layer works off of a certain kernel (I believe that it's still on 2.6x) and is still actively worked upon. It's not perfect but imagine it as being like WINE but with a much higher level of compatibility.

@Kitty Hello: I hope so. I dual boot Windows and Linux but many of the geeks and anime club members in my area are into BSD (usually PC-BSD). I'm really asked this question for a couple of them that saw me using GLBasic.

MrTAToad

I think I tried FreeBSD ages ago - the problem was getting the needed libraries, although only SDL should be needed now...