Issue #9267 has been updated by tmm1 (Aman Gupta).


+1. Some notes:

* To add -I/opt/include and -L/opt/lib, use --with-opt-dir=/opt
* Do not override CFLAGS. If CFLAGS is provided, it is used as a *replacement* for default flags (i.e., '-ggdb3 -O3' will not be used unless you specify them)
* Use MAINLIBS to add libraries to the ruby binary only (i.e. no c-extensions). This is ideal for allocators:
    make ruby MAINLIBS=-ltcmalloc
    make ruby-jemalloc RUBY_INSTALL_NAME=ruby-jemalloc MAINLIBS=-ljemalloc

----------------------------------------
Bug #9267: Document configure options
https://bugs.ruby-lang.org/issues/9267#change-43936

Author: zzak (Zachary Scott)
Status: Assigned
Priority: Normal
Assignee: zzak (Zachary Scott)
Category: doc
Target version: 2.1.0
ruby -v: 2.1.0dev
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


See also #9264


-- 
http://bugs.ruby-lang.org/