https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
14 lines
311 B
Diff
14 lines
311 B
Diff
diff --git a/ext/extconf.rb b/ext/extconf.rb
|
|
index 30764cb..b87ac2b 100644
|
|
--- a/ext/extconf.rb
|
|
+++ b/ext/extconf.rb
|
|
@@ -46,4 +46,9 @@ if /mswin/.match RbConfig::CONFIG['host_os']
|
|
$defs.push("-Dinline=__inline")
|
|
end
|
|
|
|
+$srcs = %w[
|
|
+ rdiscount.c
|
|
+]
|
|
+have_library('markdown')
|
|
+
|
|
create_makefile('rdiscount')
|