How to set -R option when compiling