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

PATCH: Updated build instructions for cygwin1.dll


A few days back I read the following message from Chris Faylor
regarding the correct build procedure for the cygwin1.dll:

    http://cygwin.com/ml/cygwin/2001-04/msg00712.html

Since I believe these instructions are more detailed, I'd like to
submit the attached patch for how-programming.texinfo to bring the
build instructions in the FAQ up-to-date.

Comments?

--- ./winsup/doc/how-programming.texinfo.orig	Tue Oct 31 08:58:09 2000
+++ ./winsup/doc/how-programming.texinfo	Sat May  5 07:19:00 2001
@@ -170,15 +170,25 @@
 @strong{Note:} You must build in a directory @emph{outside} the source
 tree.
 
-Assuming that you have the src installed as /src, will build in
-the directory /obj, and want to install the tools in /install:
+The Cygwin DLL follows the same @samp{./configure; make; make install}
+mechanism GNU tools use for building.  The difference is that, unlike
+building a GNU package, care must be taken not to clobber the Cygwin DLL
+that's being is being used during the build.  The way this is
+accomplished is by specifying additional macro definitions when running
+@samp{make install} not usually required when building GNU tools.
+
+The correct procedure is as follows, assuming you're building in /obj,
+the Cygwin DLL sources have been unpacked in /src, and your finished
+Cygwin environment get installed into /netrel/inst:
 
 @example
-bash
 cd /obj
-/src/configure --prefix=/install -v > configure.log 2>&1
-make > make.log 2>&1
-make install > install.log 2>&1
+/src/configure --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc \
+    --libdir=/usr/lib --libexecdir=/usr/sbin
+make
+make prefix=/netrel/inst/usr exec_prefix=/netrel/inst/usr \ 
+     sysconfdir=/netrel/inst/etc libdir=/netrel/inst/usr/lib \ 
+     libexecdir=/netrel/inst/usr/sbin install
 @end example
 
 Normally, this will also attempt to build the documentation, which

-- 
Dario Alcocer -- Software Developer, Helix Digital Inc.
alcocer@helixdigital.com -- http://www.helixdigital.com

--
Want to unsubscribe from this list?
Check out: 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]