From: Luis Lavena Date: 2010-09-12T06:00:20+09:00 Subject: Re: Best way to get compile-time configuration for building/linking against Ruby? On Sep 11, 1:01 pm, Eric MSP Veith wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Roger, > Ara, > > thanks for your answers. I should have been a bit clearer with my request; > sorry. > > Thing is, I'm using Autotools (autoconf et al), so I cannot hardcore paths > for obvious reasons, and parsing JSON or YAML is from the table, too. So, > "more elegant" basically meant: Something that's easy to use from a shell > script (i.e., configure.ac). > > Does sombody have another suggestion? :-) > A workaround will be create ruby as static library (--enable-static -- disable-shared) during Ruby configure phase. Then, create a program entry point (your program) and link against libruby library. You can check how that is done for projects like exerb, is Windows and MinGW, but you can get the idea form it: http://github.com/snaury/exerb-mingw HTH, -- Luis Lavena