http://sourceware.org/bugzilla/show_bug.cgi?id=12476

           Summary: mingw target should reference windows.h instead of
                    Windows.h
           Product: binutils
           Version: 2.22 (HEAD)
            Status: NEW
          Severity: critical
          Priority: P2
         Component: ld
        AssignedTo: unassig...@sources.redhat.com
        ReportedBy: dongsheng.s...@gmail.com


Created attachment 5233
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5233
Here is the patch

There have 3 files reference to Windows.h:

ld/config.in:
AC_CHECK_HEADERS([Windows.h],[enable_plugins=yes],[],[AC_INCLUDES_DEFAULT])
ld/configure: ...

ld/plugin.c: #include <Windows.h>

But in the mingw or mingw-w64 repository, the name should be windows.h:

http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/w32api/include/?cvsroot=src

https://mingw-w64.svn.sourceforge.net/svnroot/mingw-w64/trunk/mingw-w64-headers/include/

So in an case sensitive filesystem/platform, AC_CHECK_HEADERS will fail, and
the plugin will not build.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to