This is the mail archive of the cygwin-apps@cygwin.com 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: setup changes to build standalone




> -----Original Message-----
> From: Christopher Faylor [mailto:cgf@redhat.com] 
> Sent: Friday, April 26, 2002 1:19 PM

> >So,
> >I've made a copy of bz2lib from src/winsup/bz2lib to set/bz2lib, and 
> >adjusted accordingly.
> 
> Ack.  Duplication.  Duplication bad.

Yup.
 
> Here was a good reason not to move cinstall.  Sigh.

Yes. I even documented all this some time back on
http://www.cygwin.com/ml/cygwin-apps/2001-11/msg00634.html, but
predicatably enough, no patches where forthcoming. Probably due to the
complete lack of a prebuilt bz2lib for mingw (that my cursory searches
have looked for).
 
> I can't think of any way around this, though.  Even if we say 
> "You must have a mingw version of libbz2.a available" that 
> will screw up my need for this library in winsup.
> 
> I wonder if we need a "mingw-libs" package.

Yes, please, please, yes. I would really really love it if some of the
common libs (zlib, bz2lib, stdc++) where available in a setup.exe
installable pacakge.
 
> 1) Why the --host=?  So that you'll be able to use a mingw version of
>    everything?

Yes. It gets rid of the need for mingw_foo in the make files, and makes
it explicit that we are cross compiling.
 
> 2) The above won't work in a cross build environment.  You could say
>    CC='i686-pc-cygwin-gcc -mno-cygwin'..., I guess.

for cross compiles:
../setup/configure --host=i686-pc-mingw32 --build-i686-pc-linux 
should do it (assuming a mingw32 cross compiler is present), or a
combination using the CC string you have above with the mingw host will
work too.
 
> I think you should just check it in and tweak things in cvs 
> rather than post a patch.  It's not going to impact anyone 
> but a tiny handful of people if you use cvs but it will 
> impact a much larger audience if you send out patches.

Ok, will do. 
 
> anything that is non-simple.  I haven't looked at it in a 
> while, though, so maybe things have changed.

It really depends on what you want to do. Some stuff it does
spectalularly well, some things it has trouble with. With the 'cross
compiling but not' approach, it would almost certainly have some trouble
:}.

Rob


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