diff options
Diffstat (limited to 'ext/-test-/dir/extconf.rb')
-rw-r--r-- | ext/-test-/dir/extconf.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/-test-/dir/extconf.rb b/ext/-test-/dir/extconf.rb new file mode 100644 index 0000000000..ce4aad142a --- /dev/null +++ b/ext/-test-/dir/extconf.rb @@ -0,0 +1,9 @@ +have_func("dirfd") + +$INCFLAGS << " -I$(topdir) -I$(top_srcdir)" +$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-/dir") |