From: Simon Wright <simon@pushface.org>
Subject: Re: Defining the invocation of a shell command in a gpr project file
Date: Wed, 12 Feb 2014 20:30:34 +0000
Date: 2014-02-12T20:30:34+00:00 [thread overview]
Message-ID: <ly7g90dqfp.fsf@pushface.org> (raw)
In-Reply-To: 783ad521-d54a-4c28-8c76-9afb84f4a396@googlegroups.com
David Pereira <dmrpereira@gmail.com> writes:
> I believe this is a naive question, but still I was not able to find
> the answer by the google method :-)
This aspect of Mac OS X is one of its black mysteries ..
> So, my question is this: is it possible to invoke a shell command when
> using gnatmake or gprbuild? I am implementing a binding to C library
> and, since I am in Mac Os, I have to call the command
> install_name_tool to change the path point to where the library I am
> using is available, after the binary is compiled and linked.
I think you can get away with using -rpath; see the last few paras of
the dyld(1) man page, online at [1], as pointed out to me in a comment
on [2].
You could try
package Linker is
for Linker_Options use
("-L/path/to/c/lib",
"-lclib",
"-rpath",
"/path/to/c/lib");
end Linker;
[1]
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/dyld.1.html
[2] http://stackoverflow.com/a/21348716/40851
next prev parent reply other threads:[~2014-02-12 20:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-12 14:10 Defining the invocation of a shell command in a gpr project file David Pereira
2014-02-12 20:30 ` Simon Wright [this message]
2014-02-13 12:47 ` David Pereira
2014-02-14 17:46 ` Simon Wright
2014-03-06 14:03 ` David Pereira
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox