This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Failure in building GFortran on Cygwin

On Dec  1 04:13, Brian Dessent wrote:
> Corinna Vinschen wrote:
> [ snip sensible explanation that I had actually ran into in the past and
> then forgotten about ]
> > > Or is pulluting the namespace with a macro called "timezone" too
> > > hideous?  In that case we could try declaring it "extern long timezone
> > > asm("_timezone");" in the header.
> > 
> > Erm... sorry if my lack of assembler inlining shows, but that really
> > works?  If so, it looks like a rather elegant solution to me.  I'll give
> > it a try.
> Oops, I think it should be asm("__timezone") with two leading
> underscores, as specifying the assembler name like this bypasses the
> compiler automatically adding one.

Works like a charm.  I like this.  I will apply a patch which removes
timezone from the exported symbols in libcygwin.a and use the above
expression in cygwin/time.h.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]