Conversation
Needed for iOS 13 support
new apps need iOS 13, so we should try to use that here
511f5d3 to
7f4d3f4
Compare
There was a problem hiding this comment.
Maybe we should move these to the binutils override above
There was a problem hiding this comment.
Yeah - that avoids the warning
There was a problem hiding this comment.
I think the c compiler should know about minSdkVersion, so I readded miphoneos-version-min.
There was a problem hiding this comment.
Weird it knows about it, but can't also send it to the linker, ugh.
There was a problem hiding this comment.
It sends the min sdk version to the linker, but not the sdk version. It looks like this might fix that:
dac26f5 to
3c830bc
Compare
…ersion-min The App Store looks at LC_VERSION_MIN_IPHONEOS to verify you have a new enough SDK version. This is not just the minimum version, but also the sdk version used. When the linker can’t figure it out, it tries to infer it from the sdk path[1]. When no sdk version is found, it defaults to just using the -miphoneos-version-min value[2]. So, to make sure we don’t rely on inference (which doesn’t work in the current directory structure), we have to specify -platform_version. [1]: https://github.com/tpoechtrager/cctools-port/blob/43f32a4c61b5ba7fde011e816136c550b1b3146f/cctools/ld64/src/ld/Options.cpp#L5355-L5376 [2]: https://github.com/tpoechtrager/cctools-port/blob/43f32a4c61b5ba7fde011e816136c550b1b3146f/cctools/ld64/src/ld/ld.hpp#L58
|
The cctools bump seems to have added a warning on linking: This warning seems harmless enough, but ruby's configure script treats this as a problem with As pointed out in the thread above, clang adds version args when calling the linker, which duplicates the flags set in Just as a test, reverting 3c6bd61 is sufficient to build ruby. |
Motivation for this change
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)nix path-info -Sbefore and after)