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

ruby-changes:33323

From: nobu <ko1@a...>
Date: Tue, 25 Mar 2014 10:30:11 +0900 (JST)
Subject: [ruby-changes:33323] nobu:r45402 (trunk): defs/gmake.mk: no _FORTIFY_SOURCE unless optimization

nobu	2014-03-25 10:30:07 +0900 (Tue, 25 Mar 2014)

  New Revision: 45402

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45402

  Log:
    defs/gmake.mk: no _FORTIFY_SOURCE unless optimization
    
    * defs/gmake.mk (XCFLAGS): remove _FORTIFY_SOURCE if optimization is
      disabled as it requires compiling with optimization.

  Modified files:
    trunk/defs/gmake.mk
Index: defs/gmake.mk
===================================================================
--- defs/gmake.mk	(revision 45401)
+++ defs/gmake.mk	(revision 45402)
@@ -5,6 +5,10 @@ TEST_TARGETS := $(patsubst test-%,yes-te https://github.com/ruby/ruby/blob/trunk/defs/gmake.mk#L5
 TEST_DEPENDS := $(if $(TEST_TARGETS),$(filter all main exts,$(MAKECMDGOALS)))
 TEST_DEPENDS += $(TEST_DEPENDS) $(if $(filter check%,$(MAKECMDGOALS)),main)
 
+ifneq ($(filter -O0 -Od,$(optflags)),)
+override XCFLAGS := $(filter-out -D_FORTIFY_SOURCE=%,$(XCFLAGS))
+endif
+
 ifneq ($(filter check% test,$(MAKECMDGOALS)),)
 yes-test-knownbug: $(TEST_DEPENDS) yes-btest-ruby
 yes-btest-ruby: $(TEST_DEPENDS) yes-test-sample

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

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