summaryrefslogtreecommitdiff
path: root/gc/extconf_base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'gc/extconf_base.rb')
-rw-r--r--gc/extconf_base.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/gc/extconf_base.rb b/gc/extconf_base.rb
new file mode 100644
index 0000000000..2a224b9b0e
--- /dev/null
+++ b/gc/extconf_base.rb
@@ -0,0 +1,14 @@
+# frozen_string_literal: true
+
+require "mkmf"
+
+srcdir = File.join(__dir__, "..")
+$INCFLAGS << " -I#{srcdir}"
+
+$CPPFLAGS << " -DBUILDING_MODULAR_GC"
+
+append_cflags("-fPIC")
+
+def create_gc_makefile(name, &block)
+ create_makefile("librubygc.#{name}", &block)
+end