ruby-changes:53304
From: nobu <ko1@a...>
Date: Sun, 4 Nov 2018 08:11:01 +0900 (JST)
Subject: [ruby-changes:53304] nobu:r65520 (trunk): configure.ac: set CC_WRAPPER by checking message
nobu 2018-11-04 08:10:57 +0900 (Sun, 04 Nov 2018) New Revision: 65520 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65520 Log: configure.ac: set CC_WRAPPER by checking message Modified files: trunk/configure.ac Index: configure.ac =================================================================== --- configure.ac (revision 65519) +++ configure.ac (revision 65520) @@ -257,14 +257,13 @@ AS_CASE(["$build_os"], https://github.com/ruby/ruby/blob/trunk/configure.ac#L257 # Xcode linker warns for deprecated architecture and wrongly # installed TBD files. CC_WRAPPER="" - AS_IF([! $CC -E -xc - <<SRC >/dev/null 2>&1], [ - @%:@if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ >= 10 - @%:@error ignore linker warnings - @%:@endif -SRC + echo 'int main(void) {return 0;}' > conftest.c + AS_IF([$CC -framework Foundation -o conftest conftest.c 2>&1 | + grep '^ld: warning: text-based stub file' >/dev/null], [ CC_WRAPPER=`cd -P "$srcdir/tool" && pwd`/darwin-cc CC="$CC_WRAPPER $CC" ]) + rm -fr conftest* ]) cc_version= -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/