February 13, 2012
On 2/13/2012 11:50 AM, Sönke Ludwig wrote:
> So either the problem is just a build setup issue or it was something I
> didn't test (I tested writefln() as in bug 4854). Is there a standard
> way to build the DMD+druntime+phobos package so I can simulate the
> original build process? Right now I just compiled each of those
> separately using "make posix.mk" without any further options.

make posix.mak is the way.

> Minor note: the version check in dmd/source/posix.mk to select the OS X
> SDK does not work on 10.5 and it selects the 10.6 SDK.

Please post a patch for that, and I'll merge it in.
February 14, 2012
Am 13.02.12 21:29, schrieb Walter Bright:
> On 2/13/2012 11:50 AM, Sönke Ludwig wrote:
>> So either the problem is just a build setup issue or it was something I didn't test (I tested writefln() as in bug 4854). Is there a standard way to build the DMD+druntime+phobos package so I can simulate the original build process? Right now I just compiled each of those separately using "make posix.mk" without any further options.
>
> make posix.mak is the way.
>
>> Minor note: the version check in dmd/source/posix.mk to select the OS X SDK does not work on 10.5 and it selects the 10.6 SDK.
>
> Please post a patch for that, and I'll merge it in.

Attached the patch (the pattern uses % instead of * and the 10.5/10.6 arguments are reversed on line 40).

There is an easy way to install the 10.5 SDK on a 10.7 machine: http://lunokhod.org/?p=269

Maybe that would be a viable solution to keep 10.5 support - of course assuming that it's really just the SDK.


February 14, 2012
On 2012-02-14 10:41:43 +0000, Sönke Ludwig <ludwig@informatik.uni-luebeck.de> said:

> Attached the patch (the pattern uses % instead of * and the 10.5/10.6
> arguments are reversed on line 40).
> 
> There is an easy way to install the 10.5 SDK on a 10.7 machine:
> http://lunokhod.org/?p=269
> 
> Maybe that would be a viable solution to keep 10.5 support - of course
> assuming that it's really just the SDK.

You don't actually need the 10.5 SDK to create a 10.5-compatible binary, unless you're compiling for PowerPC. All you have to do is use the "-mmacosx-version-min=10.5" argument when invoking GCC and make sure you're not using any API not present on 10.5 (and if you're using one it'll be weak-linked and you have to check at runtime if it exists before using it). You can still use the 10.6 or 10.7 SDK, or not specify any SDK letting the compiler use the system-installed headers and libraries. I'm doing it with my apps, and it works great.

-- 
Michel Fortin
michel.fortin@michelf.com
http://michelf.com/

February 14, 2012
On 2/14/2012 2:41 AM, Sönke Ludwig wrote:
>> Please post a patch for that, and I'll merge it in.
>
> Attached the patch

Folded in.
1 2 3
Next ›   Last »