comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Shared library project
Date: Thu, 10 Jun 2010 20:53:01 +0100
Date: 2010-06-10T20:53:01+01:00	[thread overview]
Message-ID: <m239wu4qci.fsf@pushface.org> (raw)
In-Reply-To: op.vd249rflxmjfy8@garhos

"Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr> writes:

> I am bit surprised, as it should be possible to build a DLL using
> static library. Unfortunately, I have never experimented this with
> GNAT. Anyway, feel free to give more details.

Like I said above, provided you compile the static library in such a way
that it can be used in a dynamic context. With some systems this would
mean you had to compile the static library with -fPIC
(position-independent code).

I expect that what's happening is that - in systems where it's needed -
GNAT is supplying this flag automatically for the dynamic library and
not for the static library. So on those systems linking the dynamic
library against static objects wouldn't work and is disallowed. And in
the interests of portability it's disallowed even on systems where
there's no need for such a flag.

But I don't know.



  reply	other threads:[~2010-06-10 19:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-02 11:05 Shared library project AndreiK
2010-06-02 11:09 ` AndreiK
2010-06-02 11:46   ` Yannick Duchêne (Hibou57)
2010-06-09 11:33     ` AndreiK
2010-06-09 14:24       ` Yannick Duchêne (Hibou57)
2010-06-10  5:10         ` AdaMagica
2010-06-10 12:50         ` Andrei Krivoshei
2010-06-10 13:04           ` Yannick Duchêne (Hibou57)
2010-06-10 19:53             ` Simon Wright [this message]
2010-06-10 13:48           ` Dmitry A. Kazakov
2010-06-02 12:02   ` sjw
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox