Configure refactor #1498

merged 3 commits into from Jan 8, 2012


None yet
2 participants

Gibheer commented Jan 8, 2012

I refactored the way header and functions tests are done in configure. Now there is a method to compile code with all flags set, logging the code and a message, if it was a success.

Another part is the detection of the libc. The problem was, that the libc version was hardcoded to That way, ffi-rzmq could not be used on freebsd or solaris, because they have version 7 and 1. To fix this this ldd is called on the ruby binary configure is run with. The output is parsed to get the used version.

Gibheer added some commits Jan 6, 2012

@Gibheer Gibheer refactor of configure
To reduce the duplication of compile code a function was introduced for
the compile job and the log entries.
@Gibheer Gibheer detect the correct on unix
On some unix derivates was the problem, that was not found.
They have or (freebsd, solaris) and therefore using
the ffi bindings was not possible.

With this change the libc is detected and set accordingly.
@Gibheer Gibheer switched from array to StringIO for source code 189b3a6

brixen merged commit 189b3a6 into rubinius:master Jan 8, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment