Use makedef.pl on VMS to feed vms/gen_shrfls.pl.
authorCraig A. Berry <craigberry@mac.com>
Fri, 8 Jul 2011 19:28:05 +0000 (14:28 -0500)
committerCraig A. Berry <craigberry@mac.com>
Fri, 8 Jul 2011 22:31:21 +0000 (17:31 -0500)
commit93ea32b83e27783af976f1a5fb27ee02deebc40b
treed8f41a759df840cfb325f0d51feaa33530af6afe
parent1a711748856db57545e4462189a7d8ae47c8d12a
Use makedef.pl on VMS to feed vms/gen_shrfls.pl.

This replaces the latter's long-standing method of running
perl.h through the C preprocessor and parsing the output in
order to see what symbols need exporting in the linker options
file.

vms/gen_shrfls.pl remains part of the process for now since it
knows various things about generating linker options files on
different architectures and other VMS-specific gotchas such as
symbol case sensitivity and long symbol shortening.  These
features could be added to makedef.pl but are unlike anything
currently done there.

This should slightly increase the chances that folks can modify
the API without breaking the build, and it should make us a bit
stricter about only exporting the symbols we intend to, but the
result is still far from optimal.  It replaces one set of
heuristics and manually-maintained inclusion and exclusion lists
with different heuristics and even longer lists of inclusions and
exclusions.
makedef.pl
vms/descrip_mms.template
vms/gen_shrfls.pl