config/libc/mingw.in
author Daniel Price <daniel.price@gmail.com>
Tue Nov 20 16:59:17 2012 -0800 (2012-11-20)
changeset 3126 333d3e40cbd1
parent 2444 896cb0d36c1a
child 3131 bd172b161ff8
permissions -rw-r--r--
scripts: refine static linking check to better guide the user

The current mechanism to check if static linking is possible, and the mesage
displayed on failure, can be puzzling to the unsuspecting user.

Also, the current implementation is not using the existing infrastructure,
and is thus difficult to enhance with new tests.

So, switch to using the standard CT_DoExecLog infra, and use four tests to
check for the host compiler:
- check we can run it
- check it can build a trivial program
- check it can statically link that program
- check if it statically link with libstdc++

That should cover most of the problems. Hopefully.

(At the same time, fix a typo in a comment)

Signed-off-by: Daniel Price <daniel.price@gmail.com>
[yann.morin.1998@free.fr: split original patch for self-contained changes]
[yann.morin.1998@free.fr: use steps to better see gcc's output]
[yann.morin.1998@free.fr: commit log]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <163f86b5216fc08c672a.1353459722@nipigon.dssd.com>
Patchwork-Id: 200536
     1 # mingw options
     2 
     3 ## depends on WINDOWS
     4 ##
     5 ## select LIBC_SUPPORT_WIN32THREADS
     6 ##
     7 ## help The de-facto standard for Mingw distributions.
     8 
     9 choice
    10     bool
    11     prompt "Windows API version"
    12 
    13 # Don't remove next line
    14 # CT_INSERT_VERSION_BELOW
    15 config WINAPI_V_2_0_7
    16     bool
    17     prompt "2.0.7"
    18 
    19 config WINAPI_V_select
    20     bool
    21     prompt "Other version"
    22 
    23 endchoice
    24 
    25 config WINAPI_VERSION
    26     string
    27     prompt "Windows API version" if WINAPI_V_select
    28 # Don't remove next line
    29 # CT_INSERT_VERSION_STRING_BELOW
    30     default "2.0.7" if WINAPI_V_2_0_7
    31     help
    32       Enter the version number of the Windows API files to use
    33 
    34 config MINGW_DIRECTX
    35     bool
    36     prompt "Include DirectX development files"
    37 
    38 config MINGW_DDK
    39     bool
    40     prompt "Include DDK development files"