Installing and Building Your SourcePro® Products : Chapter 3 Buildspec Details : General Buildspec Questions : Select Compile and Link Options
Select Compile and Link Options
Specify the compile and link options to use. Options can be added to the compile, link, and library creation command lines. In each case, you can add your options either before or after the built-in compile/link flags generated by the RCB build manager.
NOTE >> This is an advanced question visible only when the Show advanced questions box is selected on the “Advanced Options” dialog’s Advanced Questions tab.
If any compile or link options conflict with those specified by the build manager, the location of options specified on these dialogs determines which specification takes precedence. Order of precedence is compiler-specific. Consult your compiler documentation to determine how your compiler behaves.
Custom Compile Flags
Select the compile flags to use when building library source.
The provided flags resolve to something like:
cl <start-flags> <rcb-generated-compile-flags> <end-flags>
Precedence of build flags is compiler-specific. If any selected options conflict with those specified by the build manager, consult your compiler documentation to determine which fields to use for those options.
Custom Executable Link Flags
Enter link flags to pass to the compiler/linker when building executables.
Most platforms support just two options: start and end flags, which resolve to:
cl <start-flags> <rcb-generated-link-flags> <end-flags>
On platforms that use distinct compile and link options when building executables, all four options are available, as pictured here. In this case, the provided flags resolve to something like:
cl <start-flags> <rcb-generated-executable-compile-flags> <end-flags> /link
<start-link-flags> <rcb-generated-executable-link-flags> <end-link-flags>
Custom Library Link Flags
Enter custom link flags to pass to the compiler/linker when building libraries.
Most platforms support just two options: start and end flags, which resolve to:
cl <start-flags> <rcb-generated-library-link-flags> <end-flags>
On platforms that use distinct compile and link options when building libraries, all four options are available, as pictured here. In this case, the provided flags resolve to something like:
cl <start-flags> <rcb-generated-library-compile-flags> <end-flags> /link
<start-link-flags> <rcb-generated-library-link-flags> <end-link-flags>