1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fake.rb: Set prefix to $topdir

Not to refer outside the top build directory from rbconfig.
This commit is contained in:
Nobuyoshi Nakada 2022-02-27 20:09:58 +09:00
parent 289a4cf672
commit 7f4345639b
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -48,6 +48,7 @@ prehook = proc do |extmk|
RbConfig.fire_update!("builddir", builddir)
RbConfig.fire_update!("buildlibdir", builddir)
RbConfig.fire_update!("libdir", builddir)
RbConfig.fire_update!("prefix", $topdir)
RbConfig.fire_update!("top_srcdir", $top_srcdir ||= top_srcdir)
RbConfig.fire_update!("extout", $extout)
RbConfig.fire_update!("rubyhdrdir", "$(top_srcdir)/include")