* Ada configuration options?
@ 2002-05-08 23:00 Simon Wright
2002-05-09 22:19 ` Alexandre Oliva
0 siblings, 1 reply; 8+ messages in thread
From: Simon Wright @ 2002-05-08 23:00 UTC (permalink / raw)
To: gcc
Hi,
There are no specific configure instructions for GNAT, so I was
wondering how --enable-shared and --enable-threads affect the build?
(I see no libgnat.so)
3.1 compiler, i686-pc-linux-gnu
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Ada configuration options?
2002-05-08 23:00 Ada configuration options? Simon Wright
@ 2002-05-09 22:19 ` Alexandre Oliva
2002-05-10 10:44 ` Geert Bosch
0 siblings, 1 reply; 8+ messages in thread
From: Alexandre Oliva @ 2002-05-09 22:19 UTC (permalink / raw)
To: Simon Wright; +Cc: gcc
On May 9, 2002, Simon Wright <simon@pushface.org> wrote:
> There are no specific configure instructions for GNAT, so I was
> wondering how --enable-shared and --enable-threads affect the build?
They don't. The GNAT run-time cannot be built as a shared library,
AFAIK.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Ada configuration options?
2002-05-09 22:19 ` Alexandre Oliva
@ 2002-05-10 10:44 ` Geert Bosch
0 siblings, 0 replies; 8+ messages in thread
From: Geert Bosch @ 2002-05-10 10:44 UTC (permalink / raw)
To: Alexandre Oliva; +Cc: Simon Wright, gcc
On Friday, May 10, 2002, at 12:25 , Alexandre Oliva wrote:
> On May 9, 2002, Simon Wright <simon@pushface.org> wrote:
>
>> There are no specific configure instructions for GNAT, so I was
>> wondering how --enable-shared and --enable-threads affect the build?
>
> They don't. The GNAT run-time cannot be built as a shared library,
> AFAIK.
Actually, it can. The ACT nightly builds create both static and dynamic
libraries by default. There are gnatbind options to select which to
link to:
-static Link against a static GNAT run time
-shared Link against a shared GNAT run time
Whether all Makefile and configury pieces are in place to actually
build dynamic libraries with GCC 3.1, I don't know. If not, the changes
should be relatively minor to make things work, but all these Makefiles
give me a headache everytime I try to figure them out.
-Geert
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Ada configuration options?
2002-05-11 12:00 ` John David Anglin
@ 2002-05-12 1:26 ` Simon Wright
0 siblings, 0 replies; 8+ messages in thread
From: Simon Wright @ 2002-05-12 1:26 UTC (permalink / raw)
To: dave; +Cc: aoliva, gcc
> From: "John David Anglin" <dave@hiauly1.hia.nrc.ca> When I tried
> this, I found that I had to manually remove *.o and *.ali files in
> the ada build directory before trying "make gnatlib-shared" since
> the files need to be compiled with "-fPIC" for the shared library.
I watched as it built (well, with one eye) and the library was
recompiled with -fPIC. However, will try again.
My use problem is that the built library references unfound symbols --
but I may not have got the library paths right, for
--prefix=/opt/gcc-3.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Ada configuration options?
2002-05-11 4:50 ` Simon Wright
@ 2002-05-11 12:00 ` John David Anglin
2002-05-12 1:26 ` Simon Wright
0 siblings, 1 reply; 8+ messages in thread
From: John David Anglin @ 2002-05-11 12:00 UTC (permalink / raw)
To: Simon Wright; +Cc: aoliva, gcc
> Turns out you build the shared GNAT libraries by
>
> cd gcc
> make gnatlib_and_tools
>
> (as usual for GNAT) and then
When I tried this, I found that I had to manually remove *.o and *.ali
files in the ada build directory before trying "make gnatlib-shared"
since the files need to be compiled with "-fPIC" for the shared library.
> make gnatlib-shared
>
> I'm still having trouble actually linking against them,
> though. Another thread for that, I think.
I tried the above under hppa-linux. However, we don't yet have the
configuration support to build a proper runtime library. Also, the
install process installs a link for a shared runtime library but not
shared runtime library.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Ada configuration options?
2002-05-10 0:41 ` Alexandre Oliva
@ 2002-05-11 4:50 ` Simon Wright
2002-05-11 12:00 ` John David Anglin
0 siblings, 1 reply; 8+ messages in thread
From: Simon Wright @ 2002-05-11 4:50 UTC (permalink / raw)
To: aoliva; +Cc: dave, gcc
> From: Alexandre Oliva <aoliva@redhat.com>
> On May 10, 2002, "John David Anglin" <dave@hiauly1.hia.nrc.ca> wrote:
>
> >> They don't. The GNAT run-time cannot be built as a shared library,
> >> AFAIK.
>
> > What's the "gnatlib-shared" ada/Makefile option for?
>
> To prove me wrong, for a start? :-)
Turns out you build the shared GNAT libraries by
cd gcc
make gnatlib_and_tools
(as usual for GNAT) and then
make gnatlib-shared
I'm still having trouble actually linking against them,
though. Another thread for that, I think.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Ada configuration options?
2002-05-09 23:31 John David Anglin
@ 2002-05-10 0:41 ` Alexandre Oliva
2002-05-11 4:50 ` Simon Wright
0 siblings, 1 reply; 8+ messages in thread
From: Alexandre Oliva @ 2002-05-10 0:41 UTC (permalink / raw)
To: John David Anglin; +Cc: gcc, simon
On May 10, 2002, "John David Anglin" <dave@hiauly1.hia.nrc.ca> wrote:
>> They don't. The GNAT run-time cannot be built as a shared library,
>> AFAIK.
> What's the "gnatlib-shared" ada/Makefile option for?
To prove me wrong, for a start? :-)
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Ada configuration options?
@ 2002-05-09 23:31 John David Anglin
2002-05-10 0:41 ` Alexandre Oliva
0 siblings, 1 reply; 8+ messages in thread
From: John David Anglin @ 2002-05-09 23:31 UTC (permalink / raw)
To: gcc; +Cc: aoliva, simon
> They don't. The GNAT run-time cannot be built as a shared library,
> AFAIK.
What's the "gnatlib-shared" ada/Makefile option for?
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2002-05-12 5:54 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-08 23:00 Ada configuration options? Simon Wright
2002-05-09 22:19 ` Alexandre Oliva
2002-05-10 10:44 ` Geert Bosch
2002-05-09 23:31 John David Anglin
2002-05-10 0:41 ` Alexandre Oliva
2002-05-11 4:50 ` Simon Wright
2002-05-11 12:00 ` John David Anglin
2002-05-12 1:26 ` Simon Wright
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).