[#68478] Looking for MRI projects for Ruby Google Summer of Code 2015 — Tony Arcieri <bascule@...>

Hi ruby-core,

10 messages 2015/03/10

[ruby-core:68545] [Ruby trunk - Bug #10821] mkmf.rb: Incorrect have_devel? test depending on run order

From: nagachika00@...
Date: 2015-03-17 16:57:20 UTC
List: ruby-core #68545
Issue #10821 has been updated by Tomoyuki Chikanaga.

Backport changed from 2.0.0: DONE, 2.1: REQUIRED, 2.2: DONE to 2.0.0: DONE, 2.1: DONE, 2.2: DONE

Backported into `ruby_2_1` branch at r49993.

----------------------------------------
Bug #10821: mkmf.rb: Incorrect have_devel? test depending on run order
https://bugs.ruby-lang.org/issues/10821#change-51864

* Author: Joshua Peek
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin14.0]
* Backport: 2.0.0: DONE, 2.1: DONE, 2.2: DONE
----------------------------------------
have_devel? is usually lazily checked on the first call to try_do(). However, try_do() may be invoked within the scope of a with_ldflags or with_cflags block. If have_devel? is checked for the first time with altered test LDFLAGS or CFLAGS it may crash.

~~~
# extconf.rb
$LDFLAGS = "-L/custom/path/to/lib
try_ldflags "-Issl"
# try_ldflags -> try_link -> try_do -> have_devel (with incorrect $LDFLAG in scope)
~~~



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next