delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/26/14:58:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3CA0D2CE.9060800@cportcorp.com>
Date: Tue, 26 Mar 2002 14:58:06 -0500
From: Peter Buckley <peter DOT buckley AT cportcorp DOT com>
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2
X-Accept-Language: en-us
MIME-Version: 1.0
To: William Hubbard <bill AT virtio DOT com>, cygwin AT cygwin DOT com
Subject: Re: Compiling cygwin
References: <5 DOT 1 DOT 0 DOT 14 DOT 0 DOT 20020326113011 DOT 022ad360 AT postoffice>

I actually asked this same question 29 October 2001. If you use google 
to search the cygwin.com website (enter "compiling cygwin1.dll 
site:cygwin.com" into google's search term box), the first three 
messages are from the thread that answered this question for me. You'll 
even see my name on one of them- I can't wait to tell my folks that I'm 
  famous!!! I have included one of the messages that was sent just to 
me, and not to the list. Let us know if you have more questions.

HTH,
Peter

Courtesy of Gerrit P. Hasse>>>>>>>>>>.

Then you need to creat a parrallel build directory:

bash$ cd /winsup

bash$ mkdir build

bash$ cd build

Now run the cygwin-build script (below).

#!/bin/bash
export src=/winsup/src
export inst=/winsup/build/inst
build=i686-pc-cygwin
target=i686-pc-cygwin
case $1 in
   conf*) ${src}/configure --build=${build} --target=${target} \
   --srcdir=${src} --prefix=/usr \
   --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib \
   --includedir=/nonexistent/include \
   --with-included-gettext 2>&1 | tee log.configure
   ;;
   build*) make CFLAGS=-O2 tooldir=/usr  2>&1 | tee log.make
   make info CFLAGS=-O2 tooldir=/usr 2>&1 | tee log.make-info
   ;;
   check*) make CFLAGS=-O2 tooldir=/usr check 2>&1 | tee log.check
   ;;
   clean*) make CFLAGS=-O2 tooldir=/usr clean 2>&1 | tee log.clean
   ;;
   install*) make install prefix=$inst/usr exec_prefix=$inst/usr \
   bindir=$inst/usr/bin libdir=$inst/usr/lib \
   sysconfdir=$inst/etc includedir=$inst/usr/include \
   tooldir=$inst/usr 2>&1 | tee log.install
   make install-info prefix=$inst/usr exec_prefix=$inst/usr \
   bindir=$inst/usr/bin libdir=$inst/usr/lib \
   sysconfdir=$inst/etc includedir=$inst/usr/include \
   tooldir=$inst/usr 2>&1 | tee log.install-info
   rm -rf $inst/usr/etc
   rm -f $inst/usr/info/dir
   ;;
   strip*) (cd ${inst} ; find . -name "*.exe" | xargs strip )
   ;;
   package*) (cd ${inst} ;
	rm usr/lib/lib[cgm].a
	for i in c g m
	do
		ln -s libcygwin.a usr/lib/lib$i.a
	done
     tar cvjf ../mingw-new.tar.bz2 usr/bin/mingwm10.dll \
              usr/include/mingw usr/lib/mingw ;
     tar cvjf ../w32api-new.tar.bz2 usr/include/w32api \
              usr/lib/w32api ;
     tar cvjf ../cygwin-new.tar.bz2 usr --exclude='usr/bin/mingwm10.dll' \
              --exclude='usr/include/mingw' --exclude='usr/lib/mingw' \
              --exclude='usr/include/w32api' --exclude='usr/lib/w32api' \
              --exclude='usr/bin/runtest' 
--exclude='usr/info/dejagnu.info*' \
              --exclude='usr/share/dejagnu' )
   ;;
   packdeb*) (cd ${inst} ;
	rm usr/lib/lib[cgm].a
	for i in c g m
	do
		ln -s libcygwin.a usr/lib/lib$i.a
	done
     tar cvjf ../mingw-new-debug.tar.bz2 usr/bin/mingwm10.dll \
              usr/include/mingw usr/lib/mingw ;
     tar cvjf ../w32api-new-debug.tar.bz2 usr/include/w32api \
              usr/lib/w32api ;
     tar cvjf ../cygwin-new-debug.tar.bz2 usr 
--exclude='usr/bin/mingwm10.dll' \
              --exclude='usr/include/mingw' --exclude='usr/lib/mingw' \
              --exclude='usr/include/w32api' --exclude='usr/lib/w32api' \
              --exclude='usr/bin/runtest' 
--exclude='usr/info/dejagnu.info*' \
              --exclude='usr/share/dejagnu' )
   ;;
   *) echo 'argument required: configure, build, install, strip, 
package, packdebug'
   echo    '                   [check, clean]'
   ;;
esac



William Hubbard wrote:

> I have installed the cygwin environment and source code and I want to 
> compile cygwin1.dll so I can instrument the code to troubleshoot a 
> problem I am having (which I believe is related to the com routines in 
> cygwin).  I am not very familiar with this environment.  How do I 
> compile the DLL?  I'm running Windows 2000.
> 
> William Hubbard
> 
> 
> -- 
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019