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,59c3d659a23dadc0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-27 01:36:13 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!news.worldonline.be!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: [newbie] library dependencies Date: 27 Mar 2004 10:38:54 +0100 Organization: Worldonline Belgium Sender: lbrenta@deuteronomy Message-ID: <87ad22y6hd.fsf@insalien.org> References: NNTP-Posting-Host: 83-134-237-107.lindthout.goplus.fastdsl.tiscali.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.worldonline.be 1080380171 3012 83.134.237.107 (27 Mar 2004 09:36:11 GMT) X-Complaints-To: abuse@worldonline.be NNTP-Posting-Date: Sat, 27 Mar 2004 09:36:11 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Xref: archiver1.google.com comp.lang.ada:6595 Date: 2004-03-27T10:38:54+01:00 List-Id: Zouplaz writes: > Hi here, just another simple question : with gnat under win32 or linux is > it possible to compile an application that doesn't rely on any shared > libraries ? (statically linked I presume) > > What I want is an app that could be copied directly from a system (same > platform of course) to another.. On GNU/Linux, this is definitely possible. Just pass -static to gnatbind, e.g. gnatmake my_app -bargs -static -largs /usr/lib/libmy_library.a Usually, the static libraries /usr/lib/lib*.a contain debugging symbols; you may want to strip them off like this: strip my_app -- Ludovic Brenta.