For example, pass a config option to libv8 gem
$ bundle config --local build.libv8 --with-system-v8
$ cat .bundle/config
---
BUNDLE_BUILD__LIBV8: "--with-system-v8"
Now libv8 will be installed almost in the same way that gem does:
$ gem install libv8 --with-system-v8