Cannot compile Ruby 2.2.0 with configure error: something wrong with LDFLAGS=""
To replicate, download and unzip Ruby-2.2.0
Configure will fail with the following error:
configure: error: something wrong with LDFLAGS=""
It appears to be unimportant what LIBRARY_PATH is set to. As long as it is not empty, the error occurs.
If setting the LIBRARY_PATH environment variable is truly a problem, configure should at least give a more meaningful error instead of this unhelpful message that takes forever to track the cause of. :)
Platform: OSX 10.10.2
I know for a fact this happened with previous versions of OS X and previous versions of Ruby.