Honor DESTDIR in w32api and mingw

Charles Wilson cygwin@cwilson.fastmail.fm
Thu Oct 15 20:56:00 GMT 2009


[Cross-posted to mingw-dvlpr, but as both lists are by subscription
only, and I'm subscribed under separate aliases, I can't "link" the two
posts].

For a number of reasons [*], when building w32api and mingw-runtime
"natively" under MinGW/MSYS, DESTDIR is known not to work. However,
that's no reason not to support it when building with a cross-compiler
or when building natively under cygwin.

The attached patch allows DESTDIR installations to succeed, at least in
those configurations where it would work otherwise [*]. As usual, if
DESTDIR is empty there should be no impact on existing behavior.

[*] when prefix is DOS-ized to "C:/foo", ${DESTDIR)$(prefix) is usually
not what you want: /tmp/barC:/foo or C:/TEMPC:/foo. This is a known
issue, and is not what I'm trying to address.

2009-10-15  Charles Wilson  <...>

	Honor DESTDIR for winsup/mingw and winsup/w32api.
	* winsup/mingw/Makefile.in: Honor DESTDIR and add to
	FLAGS_TO_PASS.
	* winsup/mingw/mingwex/Makefile.in: Honor DESTDIR.
	* winsup/mingw/profile/Makefile.in: Honor DESTDIR.
	* winsup/w32api/Makefile.in Honor DESTDIR and add to
	FLAGS_TO_PASS.
	* winsup/w32api/lib/Makefile.in: Honor DESTDIR and add to
	FLAGS_TO_PASS.
	* winsup/w32api/lib/ddk/Makefile.in: Honor DESTDIR.
	* w32api/lib/directx/Makefile.in: Honor DESTDIR.

--
Chuck
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mingw-destdir.patch
Type: application/x-patch
Size: 11437 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20091015/1a1e3c41/attachment.bin>


More information about the Cygwin-patches mailing list