File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,13 @@ configure_toolchain() {
174
174
* darwin* :1)
175
175
einfo " Triggering Darwin with GCC toolchain"
176
176
compiler_stage1+=" sys-apps/darwin-miscutils"
177
- local ccvers=" $( unset CHOST; /usr/bin/gcc --version 2> /dev/null) "
177
+ # check if we have gcc-4.2 available, else use plain gcc
178
+ # Darwin 9 comes with 4.2 but it isn't enabled by default
179
+ if [[ -e $( type -P gcc-4.2) ]] ; then
180
+ CC=gcc-4.2
181
+ CXX=g++-4.2
182
+ fi
183
+ local ccvers=" $( unset CHOST; ${CC} --version 2> /dev/null) "
178
184
local isgcc=
179
185
case " ${ccvers} " in
180
186
* " (GCC) 4.2.1 " * )
@@ -214,7 +220,7 @@ configure_toolchain() {
214
220
# https://bugs.gentoo.org/show_bug.cgi?id=538366
215
221
compiler_stage1=" sys-apps/darwin-miscutils"
216
222
compiler_type=" clang"
217
- local ccvers=" $( unset CHOST; /usr/bin/gcc --version 2> /dev/null) "
223
+ local ccvers=" $( unset CHOST; ${CC} --version 2> /dev/null) "
218
224
local llvm_deps=" dev-build/ninja"
219
225
case " ${ccvers} " in
220
226
* " Apple clang version " * |* " Apple LLVM version " * )
@@ -1239,8 +1245,10 @@ bootstrap_zlib() {
1239
1245
}
1240
1246
1241
1247
bootstrap_libffi () {
1248
+ # 3.0.8: last version to bootstrap on Darwin 9 x86
1242
1249
bootstrap_gnu libffi 3.3 || \
1243
- bootstrap_gnu libffi 3.2.1
1250
+ bootstrap_gnu libffi 3.2.1 || \
1251
+ bootstrap_gnu libffi 3.0.8
1244
1252
}
1245
1253
1246
1254
bootstrap_sed () {
You can’t perform that action at this time.
0 commit comments