| Syntax: | Default: |
| link(dataLocalNames, string) | none |
This option specifies an extern variable that should be treated as local data, where string is the mangled variable name. Local variables are statically bound with the functions that use them.
By default, no variables are specified.
This option is enabled when link(dataLocal, names) is set.
Use link(dataLocalNames, string) once for each variable to be treated as local data. The variables specified are always treated as local data, even if link(dataImported) is set. Variables can be marked as imported, rather than local, data using the link(dataImported, names) and link(dataImportedNames, string) options.
Incorrectly using the dataLocal and dataLocalNames link options to declare that an extern variable is local to the current shared library when it is not will result in an error. Correctly using dataLocalNames to declare that an extern variable is local can improve performance.
Using link(dataLocal, names) and link(dataLocalNames, string) does not affect whether other variables are treated as imported or local by default. The default for these other variables is specified using the link(dataImported, all) or link(dataLocal, all) options.
Conflicts among the dataImported, dataImportedNames, dataLocal, and dataLocalNames link options are resolved in the following manner:
| Options that list variable names | The last explicit specification for a particular variable name is used. |
| Options that change the default | The last option specified is the default for variables not explicitly listed in the name-list form. |
![]()
Incremental C++ Build
C Compilation
Configuration
Files
