This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: [XFree86-4.2.0] Now that we have an improved ld, please makelibXt a shared library.
- From: Alexander Gottwald <alexander dot gottwald at s1999 dot tu-chemnitz dot de>
- To: cygwin-xfree at cygwin dot com
- Date: Tue, 29 Jul 2003 12:24:24 +0200 (MEST)
- Subject: RE: [XFree86-4.2.0] Now that we have an improved ld, please makelibXt a shared library.
- References: <003401c35538$eaebfe50$0a1c440a@BRAMSCHE>
- Reply-to: cygwin-xfree at cygwin dot com
On Mon, 28 Jul 2003, Ralf Habacker wrote:
I changed the type of _XtInherit to a variable instead of a function.
It compiles but I've not tested it completely.
> #ifdef SUNSHLIB
> /*
> * _XtInherit needs to be statically linked since it is compared against as
> * well as called.
> */
> void _XtInherit()
> {
> extern void __XtInherit();
> __XtInherit();
> }
> #define _XtInherit __XtInherit
+ #elif defined(CYGWIN)
+ void (_XtInherit)(void) = __XtInherit;
+ #define _XtInherit __XtInherit
> #endif
With this way we have a symbol which contains the address of the XtInherit
function in libXt and is directly exported. This requires the pseudo-reloc
feature of ld.
Any comments on this? Will this work or are there still problems?
I will have to change the declaration of _XtInherit in the header too, but
this will be in the real patch which I will send at the end of week.
bye
ago
--
Alexander.Gottwald@s1999.tu-chemnitz.de
http://www.gotti.org ICQ: 126018723