summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--ext/dl/callback/extconf.rb12
2 files changed, 9 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index f5d24d96284..e3f3af96a4e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Mar 10 01:57:15 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/callback/extconf.rb ($distcleanfiles): added callback.c.
+
Tue Mar 10 00:06:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (load_relative): new option to enable load path
diff --git a/ext/dl/callback/extconf.rb b/ext/dl/callback/extconf.rb
index 46aba28397d..1e8e749e1f1 100644
--- a/ext/dl/callback/extconf.rb
+++ b/ext/dl/callback/extconf.rb
@@ -1,14 +1,12 @@
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
+ callbacks = (0..8).map{|i| "callback-#{i}"}.unshift("callback")
+ callback_srcs = callbacks.map{|basename| "#{basename}.c"}
+ callback_objs = callbacks.map{|basename| "#{basename}.o"}
+ $distcleanfiles += [ "callback.h", *callback_srcs ]
+ $objs = callback_objs
$INCFLAGS << " -I$(srcdir)/.."
create_makefile("dl/callback")