The spld tool reads a configuration file at start-up that contains default values for many configurable parameters. It is sometimes useful to modify these in order to adapt to local variations.
The following methods can be used also with the splfr command, The Foreign Resource Linker.
There are two methods
This is useful when only a few parameters need to be changed, e.g. the C compiler. You can override multiple parameters by specified --conf more than once.
For instance, to use a non-default C compiler you can pass --conf CC=/home/joe/bin/mycc.
The option --conf was introduced in release 4.0.3.
It may sometimes be convenient to use a separate, possibly modified, configuration file. This should seldom be needed, use --conf instead.
To use a modified configuration file, follow these instructions:
spconfig-version. It should be located in the same directory as spld.
spconfig-version; let's call it
hacked_spld.config. Don't edit the original file.
CFLAGS=-g -O2. Edit these according to your needs. Don't add or remove any options.
spconfig-version together with spld like this:
% spld [...] --config=/path/to/hacked_spld.config