diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2017-12-05 07:49:24 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2017-12-05 07:50:25 +0000 |
commit | 30d6373e6715a05c02775b336e832341a6fc0524 (patch) | |
tree | 29a31a521dc575bcba99773e9110232a8c7fbae1 /rts/package.conf.in | |
parent | d6fccfb2ba087abfdd4a68b13165e1312f9af022 (diff) | |
download | haskell-30d6373e6715a05c02775b336e832341a6fc0524.tar.gz |
rts: fix filename case for mingw32 target
The failure is visible when we build a cross-compiler
from linux to mingw32 as:
```
$ ./configure --host=x86_64-pc-linux-gnu \
--target=x86_64-w64-mingw32
$ make
rts/linker/PEi386.c:159:10: error:
fatal error: Psapi.h: No such file or directory
#include <Psapi.h>
^~~~~~~~~
|
159 | #include <Psapi.h>
| ^
```
The problem here is case-sensitive linux filesystem. On windows
it does not matter what case is used for includes and libraries.
mingw32 provides all libraries and headers lowercase. This change
fixes case for <dbghelp.h>, <psapi.h>, -ldbghelp, -lpsapi.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Reviewers: bgamari, erikd, simonmar
Reviewed By: bgamari
Subscribers: rwbarton, thomie, carter
Differential Revision: https://phabricator.haskell.org/D4247
Diffstat (limited to 'rts/package.conf.in')
-rw-r--r-- | rts/package.conf.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/package.conf.in b/rts/package.conf.in index 52d7ef8be2..1746af59e2 100644 --- a/rts/package.conf.in +++ b/rts/package.conf.in @@ -45,8 +45,8 @@ extra-libraries: ,"wsock32" /* for the linker */ ,"gdi32" /* for the linker */ ,"winmm" /* for the linker */ - ,"Dbghelp" /* for crash dump */ - ,"Psapi" /* for process information. */ + ,"dbghelp" /* for crash dump */ + ,"psapi" /* for process information. */ #endif #if NEED_PTHREAD_LIB , "pthread" /* for pthread_getthreadid_np, pthread_create, etc. */ |