Honor DESTDIR in w32api and mingw

View: New views
1 Messages — Rating Filter:   Alert me  

Honor DESTDIR in w32api and mingw

by Charles Wilson-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
MinGW-dvlpr mailing list
MinGW-dvlpr@...
https://lists.sourceforge.net/lists/listinfo/mingw-dvlpr

mingw-destdir.patch (15K) Download Attachment