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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3e5cb326bf672965 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!postnews.google.com!b28g2000cwb.googlegroups.com!not-for-mail From: "Philippe Bertin" Newsgroups: comp.lang.ada Subject: Re: GNAT, shared libraries, building in different directories...madness! Date: 5 Oct 2006 05:22:56 -0700 Organization: http://groups.google.com Message-ID: <1160050975.900425.183610@b28g2000cwb.googlegroups.com> References: <1159469642.836410.101620@i42g2000cwa.googlegroups.com> <87lko19qjw.fsf@ludovic-brenta.org> NNTP-Posting-Host: 213.118.170.206 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1160050979 6254 127.0.0.1 (5 Oct 2006 12:22:59 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 5 Oct 2006 12:22:59 +0000 (UTC) In-Reply-To: <87lko19qjw.fsf@ludovic-brenta.org> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050715 Firefox/1.0.6 SUSE/1.0.6-16,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: b28g2000cwb.googlegroups.com; posting-host=213.118.170.206; posting-account=Lwp90A0AAACFPCXxenE5d4DXfE23834K Xref: g2news2.google.com comp.lang.ada:6877 Date: 2006-10-05T05:22:56-07:00 List-Id: While we are at it, is there somewhere a good reference document on the different .gpr options ? As in GPS, one can specify options in the IDE, and see them reflected in GPS' created .gpr file. But then again, I was not aware of gps file's features like project Build_Adael is Compiler := External ("COMPILER", "gnat"); Target := External ("TARGET", "linux"); Build := External ("BUILD", "release"); ... end Build_Adael; that can be passed along to gnatmake using the -X option. Are there more of such 'hidden' (?) options/features ? Furthermore, there are 2 environment variables (ADA_INCLUDE_PATH, ADA_OBJECTS_PATH) that can be set for gnatmake's sake; setting these do not necessitate passing to gnatmake the options for gcc and gnatbind (in the case of a project having to use sources/object files in other directories). As an example (supposed one wants to dynamically link against the system's available gtkada library) ADA_INCLUDE_PATH=/usr/local/gtk/include/gtkada ADA_OBJECTS_PATH=/usr/local/gtk/include/gtkada gnatmake window1.adb -largs `gtkada-config --libs` which ends up in a call to gnatlink equivalent to : gnatlink /home/papa/TestProjecten/GladeGUI/src/window1.ali `gtkada-config --libs` But then again, I have not found any such environment variable for gnatlink's sake. Is there any such variable that can be set to avoid this "-largs `gtkada-config --libs`"? Thanks, PhB