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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,b2c4d98cbc17f0a9,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!news.doubleslash.org!open-news-network.org!news.teledata-fn.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: A proposal for Debian policy for Ada Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH Date: Sun, 16 May 2010 21:49:31 +0200 Message-ID: NNTP-Posting-Date: 16 May 2010 21:49:31 CEST NNTP-Posting-Host: 5c823d93.newsspool3.arcor-online.net X-Trace: DXC=SY=:e6>8>Cm9kIfcjg:0fdMcF=Q^Z^V3h4Fo<]lROoRa8kFRT5Kg[6LHn;2LCVn[ In the past we are used to link external libraries using package Linker and Default_Switches ("ada") set to, e.g. "-lgdk_pixbuf-2.0". The problem with this approach is that Linker package is not automatically inherited. There exist different workarounds all more or less unpleasant. Meanwhile there is IMO a cleaner and simpler way. Just create a gpr file for the library(es) in use. For example: project Gdk_Pixbuf is for Externally_Built use "true"; for Source_Files use (); for Library_Dir use "/usr/lib"; -- Where it resides for Library_Name use "gdk_pixbuf-2.0"; -- Its name (no ".so" ending) for Library_Kind use "dynamic"; -- Shared in this case end Gdk_Pixbuf; Then with it in your project: with "gdk_pixbuf.gpr"; project My_Library is ... -- No linker package needed end My_Library; That is. gnatmake and gprbuild will add necessary linker options to all projects referencing My_Library. What about adding this as a requirement to the Debian policy? -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de