1diff --git a/ext/extconf.rb b/ext/extconf.rb
2index 30764cb..b87ac2b 100644
3--- a/ext/extconf.rb
4+++ b/ext/extconf.rb
5@@ -46,4 +46,9 @@ if /mswin/.match RbConfig::CONFIG['host_os']
6 $defs.push("-Dinline=__inline")
7 end
8
9+$srcs = %w[
10+ rdiscount.c
11+]
12+have_library('markdown')
13+
14 create_makefile('rdiscount')