From: Simon Wright <simon@pushface.org>
Subject: Re: Thick bindings to a C library and gnattest: suggestions?
Date: Mon, 01 Jul 2013 13:47:03 +0100
Date: 2013-07-01T13:47:03+01:00 [thread overview]
Message-ID: <lyli5qjvlk.fsf@pushface.org> (raw)
In-Reply-To: 5m9o5ouj1e2i.1h3w3i0aa3938$.dlg@40tude.net
"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
> There are other options, but they are incredibly intrusive, especially
> when your bindings are themselves a library. Linker options are
> ignored for library projects. They are not "transitive". I.e. each
> client project will need to specify ever changing linker switches.
In TASH[1], the GPR has
for Library_Name use "tash";
for Library_Kind use "static";
for Library_Dir use "../../lib/tash/lib-static";
for Source_Dirs use ("../../include/tash");
for Externally_Built use "true";
package Linker is
for Linker_Options use Tash_Options.Linker_Options;
end Linker;
where tash_options.gpr is generated in the configure stage for the
library; here it contains
Linker_Options :=
(
"-L/usr/lib",
"-ltk8.5",
"-ltcl8.5"
);
and to use it I just 'with "tash";' in my own GPR, and the linker
options get applied as you would hope.
[1] https://sourceforge.net/projects/tcladashell/
next prev parent reply other threads:[~2013-07-01 12:47 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-01 9:02 Thick bindings to a C library and gnattest: suggestions? ziotom78
2013-07-01 9:45 ` Dmitry A. Kazakov
2013-07-01 11:11 ` Maurizio Tomasi
2013-07-01 11:41 ` Simon Wright
2013-07-01 12:00 ` Maurizio Tomasi
2013-07-01 12:42 ` Dmitry A. Kazakov
2013-07-01 19:07 ` Simon Wright
2013-07-01 12:32 ` Dmitry A. Kazakov
2013-07-01 12:41 ` Maurizio Tomasi
2013-07-01 12:47 ` Simon Wright [this message]
2013-07-02 8:55 ` Georg Bauhaus
2013-07-02 8:33 ` Maurizio Tomasi
2013-07-02 8:58 ` Dmitry A. Kazakov
2013-07-02 16:58 ` Robert A Duff
2013-07-02 17:00 ` Jeffrey Carter
2013-07-01 17:16 ` Jeffrey Carter
2013-07-02 4:24 ` Randy Brukardt
2013-07-02 4:37 ` Shark8
2013-07-02 5:04 ` tmoran
2013-07-02 22:27 ` Randy Brukardt
2013-07-03 12:02 ` Jacob Sparre Andersen
2013-07-02 3:16 ` Jerry
2013-07-02 4:02 ` Shark8
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox