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-Thread: 103376,99e88d5f39f38483 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GprBuild and linker options Date: Mon, 18 Jul 2011 21:32:40 +0100 Organization: A noiseless patient Spider Message-ID: References: <30764c54-0e96-4394-9a5c-d742adbc5344@glegroupsg2000goo.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx04.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="30739"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX184yjXNApnxQE56FYmaCpg2a13yrE8QKhc=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (darwin) Cancel-Lock: sha1:sjHr8KBD0w48XtrBde8d+xIeutE= sha1:OgsomKIMcUuN24BXy8Nst3zMbt4= Xref: g2news2.google.com comp.lang.ada:21194 Date: 2011-07-18T21:32:40+01:00 List-Id: Felix Krause writes: > I need GprBuild to use a custom linker option (in this case, for linking against an OSX framework). So I include this in my project file: > > package Linker is > for Linker_Options use ("-framework OpenCL", "-v"); > end Linker; [...] > /usr/local/gnat/bin/gcc [...] -framework /users/felix/projects/libs/openclada//OpenCL -v [...] > > This obviously results in an error because this framework can't be > found. I searched in the GprBuild user's guide for some hint on what > causes this behavior, but I didn't find anything. Can anyone tell me > how to either make the GprBuild execution with "-framework OpenCL" > work like when I execute it in the shell, or prevent GprBuild from > prepending the working path to "OpenCL" when passing two strings to > Linker_Options? As a possible quick fix, could you try ths with gnatmake? (not of course if it's a mixed-language project) Although you'd have thought gprbuild & gnatmake would use the same logic they are often out of step.