Relative Content

Tag Archive for crubygccmakefileffi

Compiling Ruby C API (cross-platform)

The include statements presented here corresponds to the values of RbConfig::CONFIG["rubylibdir"] and RbConfig::CONFIG["rubyarchdir"]', so I thought using rbconfig to setup the compilation will give me much better results when compiling on different platforms. I wrote the following Makefile with the prior in mind: