Project

General

Profile

Actions

Bug #10821

closed

mkmf.rb: Incorrect have_devel? test depending on run order

Added by joshpeek (Joshua Peek) about 9 years ago. Updated about 9 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin14.0]
[ruby-core:67962]

Description

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)

Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #11434: test_try_ldflag_invalid_opt fails when ruby is not installedRejectedusa (Usaku NAKAMURA)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0