mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
lib/mkmf.rb: use xsystem to pkg-config --exists
* lib/mkmf.rb (pkg_config): use xsystem consistently to set up library path environment variable as well as latter pkg-config calls. [ruby-dev:49619] [Bug #12379] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fc9bc88390
commit
f37f881a58
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Sat May 14 09:04:34 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/mkmf.rb (pkg_config): use xsystem consistently to set up
|
||||
library path environment variable as well as latter pkg-config
|
||||
calls. [ruby-dev:49619] [Bug #12379]
|
||||
|
||||
Sat May 14 00:16:54 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* random.c (make_seed_value): append leading-zero-guard and get
|
||||
|
|
|
@ -1791,7 +1791,7 @@ SRC
|
|||
elsif ($PKGCONFIG ||=
|
||||
(pkgconfig = with_config("pkg-config", ("pkg-config" unless CROSS_COMPILING))) &&
|
||||
find_executable0(pkgconfig) && pkgconfig) and
|
||||
system("#{$PKGCONFIG} --exists #{pkg}")
|
||||
xsystem("#{$PKGCONFIG} --exists #{pkg}")
|
||||
# default to pkg-config command
|
||||
pkgconfig = $PKGCONFIG
|
||||
get = proc {|opt|
|
||||
|
|
Loading…
Reference in a new issue