The spld tool is implemented as a Perl script and can be
customized in order to adapt to local variations. Do not attempt
this unless you know what you are doing. Customization is done by
editing their common configuration file
spconfig-version. Follow these instructions:
spconfig-version. It should be located in the same directory as spld.
spconfig-version; let's call it
hacked_spld.config. Do not edit the original file.
CFLAGS=-g -O2. Edit these according to your needs. Do not add or remove any options.
spconfig-version together with spld like this:
% spld [...] --config=/path/to/hacked_spld.config
Replace /path/to with the actual path to the hacked configuration file.