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,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no 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!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Felix Krause Newsgroups: comp.lang.ada Subject: Re: GprBuild and linker options Date: Tue, 19 Jul 2011 14:05:39 -0700 (PDT) Organization: http://groups.google.com Message-ID: Reply-To: comp.lang.ada@googlegroups.com NNTP-Posting-Host: 92.203.78.216 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1311109539 30111 127.0.0.1 (19 Jul 2011 21:05:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 19 Jul 2011 21:05:39 +0000 (UTC) In-Reply-To: <82sjq2isvn.fsf@stephe-leake.org> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=92.203.78.216; posting-account=sXebhAoAAACnuNgFPhYnsVyKMeBm3XmF User-Agent: G2/1.0 X-Google-Web-Client: true Xref: g2news2.google.com comp.lang.ada:21200 Date: 2011-07-19T14:05:39-07:00 List-Id: > Can you use "-framework=OpenCL"? No. > In the gcc manual, there is this: > > `-Xlinker OPTION' > Pass OPTION as an option to the linker. You can use this to > supply system-specific linker options which GCC does not know how > to recognize. > > If you want to pass an option that takes an argument, you must use > `-Xlinker' twice, once for the option and once for the argument. > For example, to pass `-assert definitions', you must write > `-Xlinker -assert -Xlinker definitions'. It does not work to write > `-Xlinker "-assert definitions"', because this passes the entire > string as a single argument, which is not what the linker expects. > > `-Wl,OPTION' > Pass OPTION as an option to the linker. If OPTION contains > commas, it is split into multiple options at the commas. > > either of these might work. While "-Xlinker OPTION" still has the same problems as before (the working directory will be prepended to OPTION), "-Wl,OPTION" works, as follows: for Linker_Options use ("-Wl,-framework,OpenCL"); Thanks a lot!