darwin: Fix building GCC 4.9.3 on Darwin (MacOS).

The latest Xcode command line tools broken on 4.9.3 and a patch is needed.

Note, a suitable binutils is configured for the ARM.

Close #2439
This commit is contained in:
Chris Johns 2018-01-25 16:52:38 +11:00
parent 49033ffc66
commit b0f7ca76bb

View File

@ -25,6 +25,16 @@
%hash sha512 freebsd-212465-lang-gcc49.patch bfeb8780a934305b4b6de4b84ae2af4f086fb6d428c208c50cc70813df3f6769d460c214072fb89589e6bbd9afd48714ee3771bd0d6bf49588ef9283b358368a
%endif
#
# MacOS High Sierra does not build objc
#
%if %{_build_os} == darwin
%patch add gcc -p0 https://devel.rtems.org/raw-attachment/ticket/2439/gcc-4.9.3-macos-xcode9.diff
%hash sha512 gcc-4.9.3-macos-xcode9.diff c2e95a3bf216e8f3415aebef5a0149984100498ea12285241a64f8758ff63dc9fb9c466e85416c9d35d79f9b5690a501131c44bcab0b44ecfbbcba778ca7644d
%endif
#
# The gcc/newlib build instructions.
#