This is the mail archive of the cygwin@sourceware.cygnus.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]

Re: gcc/g77/gcj 2.95.2 for cygwin CD 1.0?


Steve Jorgensen <steve@khoral.com> writes:
> 	I need a version of the recent gcc 2.95.2 release compiled
> 	to work with the cygwin CD directory layout.  (Actually I only
> 	want the fortran part, but ... :)
> 
> 	Anyway, has someone already done this?  If not, I don't mind
> 	compiling it myself.  Can it be done straight from the gcc
> 	distribution file from gnu.org, or do I need a patch/special
> 	configuration parameters.
> 
> 	Any info is appreciated.
> 

Suhaib Siddiqui had sent me the CD layout, but I just haven't had time 
to look at it yet.

Few things I had forgotten to ask him, so I'll ask now:

1. What are the mount points guaranteed to be at installation time?
   (ie., is there a / that points to anything useful? Is there a
   /usr/include, /usr/bin? Or is everything in /bin).

2. Output of CD gcc:
   
   $ gcc -v
   $ gcc -print-search-dirs
   $ gcc -v -o hello.exe hello.c
   
   [ hello.c can be any old hello world program ]

Given this, I can build a distribution -- if there's interest of course.
So far, there hasn't been. 

My recommendation:
 
- get the gcc-2.95.2 source distro
- get x86-win32 patches from my site:
  ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/cygwin/gcc-2.95.2/patches/
- build it:
    
    $ cd ~/src
    $ tar zxf /tmp/gcc-2.95.2.tar.gz
    $ cd gcc-2.95.2
    $ patch -p1 -s < /tmp/gcc-2.95.2-x86-win32.diff
  
  The file gcc-2.95.2-x86-win32.diff is included in my patchset. 
    
    $ mkdir /tmp/gcc-2.95.2-build
    $ cd /tmp/gcc-2.95.2-build
    $ ~/src/gcc-2.95.2/configure --prefix=/usr/local/gcc-2.95.2 \
      --enable-languages=c,c++,f77,objc,java \
      i686-cygwin
  
  Of course, you may want a different prefix, or the default (/usr/local).

    $ make 
    $ make install

This should work in theory, but I have no way to tell.

Regards,
Mumit



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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