From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Using Gnat.Sockets in a Windows DLL Date: Fri, 25 Dec 2015 11:09:59 +0000 Organization: A noiseless patient Spider Message-ID: References: <220ee60f-3290-43d7-a097-cf90380d8bae@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="cbdf8bda82781ae5955dc07fd5b0948d"; logging-data="886"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6w5lptzpz736GI4yVNix5sUymX8z1Umg=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:acm0hmhzE8TBRhMmu1elDPHAQlk= sha1:btdR82PPpAd8ZeDrhv9Wd2d4tfI= Xref: news.eternal-september.org comp.lang.ada:28874 Date: 2015-12-25T11:09:59+00:00 List-Id: ahlan@marriott.org writes: > To summarise: We want to build an encapsulated DLL so that we don't > have to distribute the Ada Runtime etc. AdaCore define an encapsulated > library as only depending on system libraries. > However I wonder what is meant by system libraries. >From the sources of GPRBUILD GPL 2015, at gprlib.adb:2213, Library_Options_Table.Append (Libgnat); -- ?? The proper implementation for the following code is to -- add only the libraries that libgnat is using. This information -- is not readily available but we should be able to compute -- this from the ALI files. declare I : constant Natural := Object_Files.Last; begin -- Then adds back all libraries already on the command-line -- after libgnat to fulfill dependencies on OS libraries -- that may be used by the GNAT runtime. These are libraries -- added with a pragma Linker_Options in sources. Not much help, I konw.