diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-03 06:40:40 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-03 06:40:40 +0000 |
commit | 1001173ccd68f728d28cf7fb8752326bc3ddf3eb (patch) | |
tree | 49bf7963d93ebb19a412d74edc7d78d119a8c62f /ext/dl/callback/extconf.rb | |
parent | 2233d34b39c491d3930ad3a5e970200b6d43c32d (diff) | |
download | ruby-1001173ccd68f728d28cf7fb8752326bc3ddf3eb.tar.gz |
* ext/dl/dl.c (rb_dl_init_callbacks): autoloads callbacks.
* ext/dl/callback: split from dl.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/callback/extconf.rb')
-rw-r--r-- | ext/dl/callback/extconf.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/dl/callback/extconf.rb b/ext/dl/callback/extconf.rb new file mode 100644 index 0000000000..46aba28397 --- /dev/null +++ b/ext/dl/callback/extconf.rb @@ -0,0 +1,15 @@ +require 'mkmf' + +if compiled?("dl") + CALLBACKS = (0..8).map{|i| "callback-#{i}"} + CALLBACK_SRCS = CALLBACKS.map{|basename| "#{basename}.c"} + CALLBACK_OBJS = CALLBACKS.map{|basename| "#{basename}.o"} + + $distcleanfiles += [ "callback.h", *CALLBACK_SRCS ] + + $objs = %w[ callback.o ] + CALLBACK_OBJS + + $INCFLAGS << " -I$(srcdir)/.." + + create_makefile("dl/callback") +end |