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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a2b00634ab454a1a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-08 02:56:31 PST Path: archiver1.google.com!newsfeed.google.com!postnews1.google.com!not-for-mail From: favierp@sofreavia.fr (Pierre Favier) Newsgroups: comp.lang.ada Subject: Re: Gnat 3.13p and shared libraries on HP-UX Date: 8 Jul 2001 02:56:31 -0700 Organization: http://groups.google.com/ Message-ID: <93172edb.0107080156.22e37181@posting.google.com> References: <93172edb.0107060334.40218f28@posting.google.com> <3B45AA32.F85391A1@earthlink.net> NNTP-Posting-Host: 213.19.12.205 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 994586191 31194 127.0.0.1 (8 Jul 2001 09:56:31 GMT) X-Complaints-To: groups-support@google.com NNTP-Posting-Date: 8 Jul 2001 09:56:31 GMT Xref: archiver1.google.com comp.lang.ada:9631 Date: 2001-07-08T09:56:31+00:00 List-Id: "Marc A. Criley" wrote: > I haven't done HP in a while, but isn't there supposed to be an -fPIC > option when compiling code that's going into shared libraries? Check > the "Creating an Ada Library" section of the GNAT User Guide. (I would, > though, drop the -O0 option since there's no benefit to doing that, and > -gnatf and -gnatwu have no effect on the generated code.) > It was a mistake on my part: I did compile with -fPIC. I also tried with -O2 with the same result. For further clarification, it is not the runtime I am trying to dynamically link in my program but libraries of code belonging to my application.