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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f596f25a850be886 X-Google-Attributes: gid103376,public From: Simon Wright Subject: Re: Static linking of GNAT library Date: 2000/08/24 Message-ID: #1/1 X-Deja-AN: 662469416 X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 References: <39A3FCFB.28E60A57@raytheon.com> <3ibp5.5530$aE5.202411@news-east.usenetserver.com> X-Trace: news.demon.co.uk 967229716 nnrp-09:28025 NO-IDENT pogner.demon.co.uk:158.152.70.98 Organization: At Home Newsgroups: comp.lang.ada X-Complaints-To: abuse@demon.net Date: 2000-08-24T00:00:00+00:00 List-Id: colvert@elmco.com (Paul Colvert) writes: > My assigned SG engineer wrote back to tell me that "if there is C code > mixed in, then statically linking the files is impossible as of IRIX > 6.5." Yes, we do have some C code linked in to our simulation. Does > that mean I will be forced to distribute the shared object library? > Some of our customers have the old Ada 95 1.3 compiler installed. I > don't think I can have both libraries installed! No. But (on other Unixes, I don't know IRIX) you can play with the library path: either LD_LIBRARY_PATH, defined first -- LD_LIBRARY_PATH=/where/your/shared/library/is export LD_LIBRARY_PATH your_program or perhaps LD_PRELOAD LD_PRELOAD=/where/your/shared/library/is/libwhatever.so export LD_PRELOAD your_program (both strongly affected by whether you are root/the program is setuid root) HTH -Simon