www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Target oldest supported OS by default

reply Jacob Carlborg <doob me.com> writes:
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
Jan 10 2013
parent reply Walter Bright <newshound2 digitalmars.com> writes:
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?
Jan 10 2013
parent Jacob Carlborg <doob me.com> writes:
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
Jan 10 2013