Binary compatibility on Linux

Paulo Pinto pjmlp at progtools.org
Sat Nov 10 09:39:40 PST 2012


Am 10.11.2012 16:40, schrieb Jacob Carlborg:
> What's the best way to achieve binary compatibility on Linux? For
> example, if I compile an application on, say Ubuntu 12.04, it will most
> likely not run on any older versions of Ubuntu but it will run on future
> versions.
>
> My current approach to solve this is to compile the application in the
> oldest version of Ubuntu I can find, in this case 6.x. This is starting
> to get a bit problematic:
>
> * The integration with VirtuaBox (I'm running Ubuntu as a guest) is
> pretty bad
> * DMD won't run of out of the box, I need to compile it. This is also
> making DVM basically useless
> * I can't clone the dlang repositories due to having a very old version
> of git installed
> * I can't compile git, I haven't investigated in why but probably due to
> the system is too old
>
> Is there some compiler/linker flags I can use when building to make the
> executable compatibility with older versions of Linux?
>
> Or is there a better way to solve this?
>

I guess the right answer is to have everything compiled statically, 
especially if you need compatibility across distributions.

--
Paulo


More information about the Digitalmars-d mailing list