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: Fedora Cygwin RPM repository


On Mon, 2011-03-14 at 10:59 +0100, Corinna Vinschen wrote:
> On Mar 13 23:24, Yaakov (Cygwin/X) wrote:
> > I just added a cygwin-binutils-devel package with the necessary headers
> > and static libraries.
> > 
> > The only trick is you need to manually
> > remove /usr/i686-pc-cygwin/lib/libiberty.a so that the "correct"
> > libiberty.a is used instead until I have the chance to rebuild
> > cygwin-gcc.
> 
> Thanks!

cygwin-gcc 4.5.1-2 is now available for both arches without libiberty.a.

> > I tried that at first, but it didn't work.  The problem is with
> > binutils:
> > 
> > $ i686-pc-cygwin-strings /usr/bin/i686-pc-cygwin-ld.bfd | grep w32api
> > SEARCH_DIR("/usr/i686-pc-cygwin/lib/w32api");
> 
> I don't quite understand how this matches the current installation.
> Right now the w32api libs are in sys-root/usr/lib, not in lib.  I'm sure
> I'm missing something.

For a cygwin-target cross-compiler, binutils' ld/configure.tgt
hard-codes $(tooldir)/lib/w32api as an additional library directory.
While technically valid, is it not where we want libraries to be when
using a sysroot.

I added a small patch to binutils[1] to add sys-root/usr/lib/w32api and
have rebuilt cygwin-binutils and cygwin-w32api accordingly.

HTH,


Yaakov


P.S. I see that you already used this to fix the gcc-4.5 warnings in
winsup/cygwin, but you only applied those to your post-1.7.9 branch.
Any chance you could commit those to HEAD now as well?


[1]
http://fedora-cygwin.git.sourceforge.net/git/gitweb.cgi?p=fedora-cygwin/cygwin-binutils;a=blob;f=w32api-sysroot.patch;h=a996aef;hb=49213c4




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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