diff options
author | Earnie Boyd <earnie@users.sf.net> | 2001-09-13 12:06:28 +0000 |
---|---|---|
committer | Earnie Boyd <earnie@users.sf.net> | 2001-09-13 12:06:28 +0000 |
commit | 36d19bdddbb26cfea34bf67d975b9f6c8588f708 (patch) | |
tree | 3bca6e44b91949b6d05abf0eb5a4fe6504847271 /winsup/w32api | |
parent | dc02f343bfd15c2737e1b9a3a93e9aca11f35983 (diff) | |
download | newlib-36d19bdddbb26cfea34bf67d975b9f6c8588f708.zip newlib-36d19bdddbb26cfea34bf67d975b9f6c8588f708.tar.gz newlib-36d19bdddbb26cfea34bf67d975b9f6c8588f708.tar.bz2 |
2001-09-13 Earnie Boyd <earnie@SF.net>
* lib/Makefile.in (config_prefix): New variable.
(inst_includedir): Manipulate special value only if target == cygwin
and build == target and prefix != config_prefix.
(inst_libdir): Ditto.
Diffstat (limited to 'winsup/w32api')
-rw-r--r-- | winsup/w32api/ChangeLog | 7 | ||||
-rw-r--r-- | winsup/w32api/lib/Makefile.in | 11 |
2 files changed, 18 insertions, 0 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index 9c26a1d..6624dc2 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,10 @@ +2001-09-13 Earnie Boyd <earnie@SF.net> + + * lib/Makefile.in (config_prefix): New variable. + (inst_includedir): Manipulate special value only if target == cygwin + and build == target and prefix != config_prefix. + (inst_libdir): Ditto. + 2001-09-12 Earnie Boyd <earnie@SF.net> * Makefile.in (TARFLAGS): New variable. diff --git a/winsup/w32api/lib/Makefile.in b/winsup/w32api/lib/Makefile.in index a7ec2e2..9ece339 100644 --- a/winsup/w32api/lib/Makefile.in +++ b/winsup/w32api/lib/Makefile.in @@ -19,6 +19,7 @@ host_alias = @host_alias@ 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 @@ endif 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) |