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,ea23515df84d245f,start X-Google-Attributes: gid103376,public From: kls@icf.hrb.com (Ken Slater) Subject: static vs dynamic linking with GNAT Date: 1996/06/25 Message-ID: <1996Jun25.144322.24751@hrbicf>#1/1 X-Deja-AN: 162120906 organization: HRB Systems, Inc. newsgroups: comp.lang.ada Date: 1996-06-25T00:00:00+00:00 List-Id: I am running GNAT on a Silicon Graphics (SGI) system using Irix 5.3. We have built an executable on the host machine and want to also run on a target machine on which GNAT has not been installed. The problem is that the executable was linked with the shared library file 'libgnat.so', so when the executable is run on the target machine, it looks for 'libgnat.so'. Is there a way to force 'gcc' to link in the static libraries (libgnat.a). I tried the '-static' option without success (I may have missed something)? Thanks.