diff options
| -rwxr-xr-x | configure | 9 |
1 files changed, 5 insertions, 4 deletions
| @@ -115,14 +115,15 @@ disabled shared && disabled static && { | |||
| 115 | 115 | ||
| 116 | # simple cc test | 116 | # simple cc test |
| 117 | cat > /tmp/test.c << EOF | 117 | cat > /tmp/test.c << EOF |
| 118 | int function(void) | 118 | #include <windows.h> |
| 119 | { return 0; } | 119 | void function(void) |
| 120 | { LoadLibrary(NULL); } | ||
| 120 | EOF | 121 | EOF |
| 121 | $cc -shared -o /tmp/test.dll /tmp/test.c | 122 | $cc -shared -o /tmp/test.dll /tmp/test.c |
| 122 | 123 | ||
| 123 | test "$?" = !0 && { | 124 | test "$?" = !0 && { |
| 124 | echo "$cc could not create shared file."; | 125 | echo "$cc could not create shared file with Windows API functions."; |
| 125 | echo "Make sure your system is working properly."; | 126 | echo "Make sure your MinGW system is working properly."; |
| 126 | exit 1; | 127 | exit 1; |
| 127 | } | 128 | } |
| 128 | 129 | ||
