Re: Building Ada System DLLs
Keith Marshall <[email protected]> Sun, 4 Jun 2017 13:19:40 +0100
| Newsgroups | gmane.comp.gnu.mingw.devel |
|---|---|
| Organization | MinGW Project |
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/06/17 16:47, David Gressett wrote: > Static linking is the default. I never do dynamic linking, ... I wonder how many MinGW users actually use Ada? Of those who do, I wonder if *any* link the gnat runtime dynamically? > The libgnat and libgnarl DLL's should be left where "make install" > puts them. Looking back to the previous releases, which are still visible on our FRS download pages[1], it was done thus up to v4.3.0, with just one Ada package for each release; thereafter, the DLLs were moved their own separate package, and in the process they were relocated from their default $prefix/lib/gcc/mingw32/[version]/adalib installation path, to $prefix/bin. That relocation would have moved them away from where the gnattools would have expected to link them, making it even less likely that any Ada application would have been linked to depend on them; no existing distribution has provided corresponding import libs, which might have mitigated the effect of relocation. > stripping an Ada DLL will cause it to lose its relocatability. FWIW, I haven't checked them all, but the distributed libgnat-4.7.dll *was* stripped; did that create problems for users of that release? I don't remember any having been reported, but maybe that's simply because no one ever used them. [1]: Those which actually included gnatlib DLLs; GCC-3.x appears not to have done so; neither did any of my cross-compiled releases, from GCC-4.8.2 onwards. Furthermore, while GCC-3.x *did* include the gnatdll.exe tool, that appears to be missing from the GCC-4.x and later releases. - -- Regards, Keith. Public key available from keys.gnupg.net Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQIcBAEBAgAGBQJZM/rcAAoJEMCtNsY0flo/E4MQALnKFy1yNkzzXEXgfC1Zu+xL xUtjc5E+VF1hWpLzgl7cAhyRFX8N6Wr8jd1HyYMBrSgA4ZJvtJQMKjTpAKULD/Lw 5hQ6B4dd2d+bTmON/DGxpHW5ggluBwzMlZEaVCgHWzObhF2k7hrSxrW8vmO6Q5rE Ob42oY+A+bPyX58HE9p1YD7QVhYPfk7fqosPWIfdrNLmpxZHrhXbQtr2lPFjqW51 qJOsF0dcy+1iM3glnNt5arkCJ/KiRL/NDFf7mJGDPJY2PacboCqSWOo+fndhNW40 8bmZ0P+RJtd/ruu3xjeYMCNguwADPnJRj+Idg8M5ERogdCtZ4iyxveko5udBC1KH rt5dQgEbVwaDL+b3GaQ3e98I7JvS9OupSlq74QebS5jGYby42qmHKoXNaT0b74lG Qf9Kc5O21d6AOzs/Hf+oeN4yrRu6VZKaq4sLHJhIEmNesq5G5Rq08SvxHe0jiKRr zmEv/5zIetTfdNb/KFFZIyo6+4RaluLsQmWK/KLTaAQQDBElaTZDD/B5iqaGvz35 xWWK7UIaVkoWa6srW6HoJp9fmshUrgOYZqgF0jKj6IS4kGstCl78dLh7cZXv7Q3r jhnTwxUoQfi5izJZxkhfog+jHtr4HrWOU8QZvoFPAn0VDryZh+kSspD+YE7NPG8T Y/y4d/M1SkMeorJBUrTP =DVeX -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot