On 04/11/2013 06:51 PM, Jarred Nicholls wrote:
On Thu, Apr 11, 2013 at 2:58 PM, Alexander Stavonin <[email protected] <mailto:[email protected]>> wrote:

    Hi!
    I'm going to create Rust installation package for Mac OS X. Right
    now you can find the installer there:
    http://www.sysdev.me/public/RustInstaller.pkg.zip
    But... I've build the installer on 10.8 and when I'm running it on
    10.7 result is:

    Segmentation fault: 11

    Is it possible to build Rust on 10.8 and run it on other 10.x systems?


That's a fair question. A Mach-O binary has a load command that specifies the minimum version of OS X it supports, and is settable by Apple's gcc/clang front end by passing the flag -mmacosx-version-min. I don't know what level of control we are given by rustc for such things, so I'm interested in the answer to this as well.


I don't know exactly how this works, but rustc currently uses gcc or clang to link crates so conceivably this flag could usefully be added to the linking command line. Unfortunately I can't think of a way off hand to thread custom linker flags through the entire build. It would require first adding a command line switch to rustc to pass arbitrary flags to the 'linker', then modifying the Makefiles to pass custom flags to all the build steps.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to