From: Simon Wright <simon@pushface.org>
Subject: Re: GprBuild and linker options
Date: Mon, 18 Jul 2011 21:32:40 +0100
Date: 2011-07-18T21:32:40+01:00 [thread overview]
Message-ID: <m2wrff9vo7.fsf@pushface.org> (raw)
In-Reply-To: 30764c54-0e96-4394-9a5c-d742adbc5344@glegroupsg2000goo.googlegroups.com
Felix Krause <fordprefect86@googlemail.com> 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.
next prev parent reply other threads:[~2011-07-18 20:32 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 [this message]
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
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