Thread overview
Target oldest supported OS by default
Jan 10, 2013
Jacob Carlborg
Jan 10, 2013
Walter Bright
Jan 11, 2013
Jacob Carlborg
January 10, 2013
I just had an issue with a binary compiled on Mac OS X 10.8 not running on any older version. When I found the problem it was an easy fix adding the following linker flags:

-L-macosx_version_min -L10.6

Would it be a good idea if DMD targeted the oldest supported OS by default, that is, when invoking GCC to link?

-- 
/Jacob Carlborg
January 10, 2013
On 1/10/2013 12:24 PM, Jacob Carlborg wrote:
> I just had an issue with a binary compiled on Mac OS X 10.8 not running on any
> older version. When I found the problem it was an easy fix adding the following
> linker flags:
>
> -L-macosx_version_min -L10.6
>
> Would it be a good idea if DMD targeted the oldest supported OS by default, that
> is, when invoking GCC to link?
>

Presumably there is some reason why this is not the default behavior of the linker. Some performance problem, maybe?
January 11, 2013
On 2013-01-10 22:13, Walter Bright wrote:

> Presumably there is some reason why this is not the default behavior of
> the linker. Some performance problem, maybe?

I don't know. I've got the impression that, at least the tools by Apple, target by default the same system you're building on. I general Apple wants you to run their latest software.

-- 
/Jacob Carlborg