From: Simon Wright <simon.j.wright@mac.com>
Subject: Re: Including C source in GNAT project for building library
Date: Thu, 24 Jan 2008 06:05:51 +0000
Date: 2008-01-24T06:05:51+00:00 [thread overview]
Message-ID: <m2sl0nahc0.fsf@mac.com> (raw)
In-Reply-To: m2wspzaj41.fsf@mac.com
Simon Wright <simon.j.wright@mac.com> writes:
> As well as Ada source, this library needs two C-sourced units to act
> as wrappers for macros in the Tcl/Tk header files.
>
> I can do this by hand (obviously only for a static library) by doing
> this after gnatmake has done its part:
>
> gcc -c -g -O2 -I/usr/include tclmacro.c
> gcc -c -g -O2 -I/usr/include tkmacro.c
> ar -r lib/libtash.a tclmacro.o tkmacro.o
> ranlib lib/libtash.a
>
> but can't help feeling there should be a way to tell gnatmake to do
> this!
OK, this seems to work:
gprmake -P build_tash_library.gpr
gnatmake -P build_tash_library.gpr
because gnatmake includes all the objects it finds in the object
directory in the resulting library.
Is this The Way?
prev parent reply other threads:[~2008-01-24 6:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-24 5:27 Including C source in GNAT project for building library Simon Wright
2008-01-24 5:54 ` Per Sandberg
2008-01-24 8:33 ` Simon Wright
2008-01-24 6:05 ` Simon Wright [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox