comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: GprBuild and linker options
Date: Wed, 20 Jul 2011 08:19:46 -0400
Date: 2011-07-20T08:19:46-04:00	[thread overview]
Message-ID: <82sjq19mal.fsf@stephe-leake.org> (raw)
In-Reply-To: b53eefdb-fa04-4915-82fe-32766f919e6d@glegroupsg2000goo.googlegroups.com

Felix Krause <fordprefect86@googlemail.com> writes:

>> 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!

Glad this helped.

Now we just need to get the gcc manual improved to point out this
difference. Or maybe it is gprbuild that is adding that directory.

So much to do, so little time. Sigh.

-- 
-- Stephe



  reply	other threads:[~2011-07-20 12:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-18 12:39 GprBuild and linker options Felix Krause
2011-07-18 20:32 ` Simon Wright
2011-07-18 22:51   ` Felix Krause
2011-07-19  5:59 ` anon
2011-07-19  8:20 ` Stephen Leake
2011-07-19 21:05   ` Felix Krause
2011-07-20 12:19     ` Stephen Leake [this message]
2011-07-19  9:14 ` Alex R. Mosteo
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox