cygport: automatically adding --srcdir to cygconf cmdline breaks build

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Aug 2 17:48:00 GMT 2013


On Aug  2 11:13, Yaakov (Cygwin/X) wrote:
> On 2013-08-02 09:32, Corinna Vinschen wrote:
> >The configury consists of a non-autoconf configure file in the toplevel
> >dir, which disallows to build outside the source tree.  But I have to
> >use it to get a `all in one go' configure/make run.
> 
> This is explicitly mentioned in the cygconf section of the manual:
> 
> >cygconf is intended for configure scripts generated by, or compatible with,
> >autoconf. Packages with handwritten configure scripts may not accept all
> >the flags used by cygconf, in which case a direct call to the configure
> >script is in order.
> 
> So change this:
> 
> >   src_compile() {
> >     cd ${S}
> >     lndirs
> >     cd ${B}
> >     cygconf --enable-shared
> >     cygmake
> >   }
> 
> to something like (depending on what options this configure actually
> accepts):
> 
> src_compile() {
>   lndirs
>   cd ${B}
>   ./configure --sysconfdir=/etc --prefix=/usr || error "configure failed"
>   cygmake
> }

Ok, thanks.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat



More information about the Cygwin-apps mailing list