require 'mkmf' $LDFLAGS="-L${PREFIX}/lib -lstdc++ -lm" have_func('pow', 'math.h') and # note, this causes problems in cygwin. any suggestions? have_library('stdc++') and have_library('musicbrainz') and create_makefile('musicbrainz')