www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/09/13/08:14:02

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
X-Apparently-From: <earnie?boyd AT yahoo DOT com>
Message-ID: <3BA0A2F1.FCD3A766@yahoo.com>
Date: Thu, 13 Sep 2001 08:13:37 -0400
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: CD List <Cygwin-Developers AT Cygwin DOT Com>
X-Mailer: Mozilla 4.77 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Robert Collins <robert DOT collins AT itdomain DOT com DOT au>
CC: cygwin-developers AT Cygwin DOT Com
Subject: Re: the w32api path change
References: <EA18B9FA0FE4194AA2B4CDB91F73C0EF08F16E AT itdomain002 DOT itdomain DOT net DOT au>

This is a multi-part message in MIME format.
--------------A27E5A2035C759E9A99592A5
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Robert Collins wrote:
> 
> Earnie.. It really does break stuff, even for local installs,
> 
> ie a prefix of /usr installs insto /usr/usr
> 
> Is there any reason the change can't be simply backed out, and when a
> better alternative to achieve your goal arises put that into place?
> 

I've committed the attached patch that should help.  This isn't perfect
yet and will change in the future but it should help both this case as
well as the cross-compile case.  The case that doesn't work as expected
is the `make install prefix=/non/configured/prefix' in which case you
get /non/configured/prefix/usr/include/w32api and
/non/configure/prefix/usr/lib/w32api.

Comments/complaints/flames welcome.

Earnie.
--------------A27E5A2035C759E9A99592A5
Content-Type: text/plain; charset=us-ascii;
 name="Makefile.in.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="Makefile.in.diff"

Index: lib/Makefile.in
===================================================================
RCS file: /cvs/src/src/winsup/w32api/lib/Makefile.in,v
retrieving revision 1.13
diff -u -3 -r1.13 Makefile.in
--- Makefile.in	2001/09/12 14:48:07	1.13
+++ Makefile.in	2001/09/13 11:51:19
@@ -19,6 +19,7 @@
 build_alias = @build_alias@
 target_alias = @target_alias@
 prefix = @prefix@
+config_prefix = @prefix@
 includedir:=@includedir@
 
 program_transform_name = @program_transform_name@
@@ -37,8 +38,18 @@
 datadir = @datadir@
 infodir = @infodir@
 ifneq (,$(findstring cygwin,$(target_alias)))
+ifeq ($(build_alias),$(host_alias))
+ifeq ($(prefix),$(config_prefix))
+inst_includedir:=$(includedir)
+inst_libdir:=$(libdir)
+else
 inst_includedir:=$(tooldir)/usr/include/w32api
 inst_libdir:=$(tooldir)/usr/lib/w32api
+endif
+else
+inst_includedir:=$(includedir)
+inst_libdir:=$(libdir)
+endif
 else
 inst_includedir:=$(includedir)
 inst_libdir:=$(libdir)

--------------A27E5A2035C759E9A99592A5--


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

- Raw text -


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