Mail Archives: cygwin/2002/03/26/14:58:35
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 -