Use setenv to add an environment variable instead of putenv. In 7.0,
putenv() does not copy the supplied environment stringi, but gcc/gnat
was free()ing the memory expecting that it would be copied.
Update the antiquated version of the GNAT compiler to the GPL-2005
version.
Note that this version now produces executables that are
covered by the GPL as opposed to the previous version which was
covered by the modified GPL.
Also note that the GNAT sources in the stock GCC-4 tree are
not under this restriction. A new port based on the sources
in GCC-4 will come when I get the time.
Update to the latest released version of GNAT (3.15p). Also use a
new bootstrap compiler and fix so that it builds under -current.
Approved by: portmgr