Bundler accepts config options per gem, eg:
1 2 3
bundle config build.qrencoder \ --with-qrencoder-include=/usr/local/include/qrencode.h --with-qrencoder-lib=/usr/local/lib/libqrencode.dylib