aboutsummaryrefslogtreecommitdiffstats
path: root/ext/-test-/file/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/-test-/file/extconf.rb')
-rw-r--r--ext/-test-/file/extconf.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/ext/-test-/file/extconf.rb b/ext/-test-/file/extconf.rb
index c4cfdadcaf..321c173f4c 100644
--- a/ext/-test-/file/extconf.rb
+++ b/ext/-test-/file/extconf.rb
@@ -1,5 +1,5 @@
# frozen_string_literal: false
-$INCFLAGS << " -I$(topdir) -I$(top_srcdir)"
+require_relative "../auto_ext.rb"
headers = %w[sys/param.h sys/mount.h sys/vfs.h].select {|h| have_header(h)}
if have_type("struct statfs", headers)
@@ -14,9 +14,4 @@ if have_type("struct statvfs", headers)
have_struct_member("struct statvfs", "f_type", headers)
end
-$srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")]
-inits = $srcs.map {|s| File.basename(s, ".*")}
-inits.delete("init")
-inits.map! {|s|"X(#{s})"}
-$defs << "-DTEST_INIT_FUNCS(X)=\"#{inits.join(' ')}\""
-create_makefile("-test-/file")
+auto_ext(inc: true)