[前][次][番号順一覧][スレッド一覧]

ruby-changes:53603

From: nobu <ko1@a...>
Date: Tue, 20 Nov 2018 09:39:12 +0900 (JST)
Subject: [ruby-changes:53603] nobu:r65819 (trunk): Check -fcf-protection

nobu	2018-11-20 09:39:07 +0900 (Tue, 20 Nov 2018)

  New Revision: 65819

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65819

  Log:
    Check -fcf-protection
    
    * configure.ac: Check if CFLAGS actually includes -fcf-protection
      instead of checking if the flag is valid by RUBY_TRY_CFLAGS.

  Modified files:
    trunk/configure.ac
Index: configure.ac
===================================================================
--- configure.ac	(revision 65818)
+++ configure.ac	(revision 65819)
@@ -1002,8 +1002,7 @@ main() https://github.com/ruby/ruby/blob/trunk/configure.ac#L1002
 			ac_cv_func___builtin_setjmp=no
 		])
 		# With gcc-8's -fcf-protection, MJIT's __builtin_longjmp fails.
-		# TODO: Check if CFLAGS actually includes -fcf-protection instead of using RUBY_TRY_CFLAGS
-		RUBY_TRY_CFLAGS(-fcf-protection, [cf_protection=yes], [cf_protection=no])
+		AS_CASE(["$CC $CFLAGS "], [*" -fcf-protection "*], [cf_protection=yes], [cf_protection=no])
 		AS_IF([test "$cf_protection" = yes], [
 			ac_cv_func___builtin_setjmp=no
 		])

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]