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
bartvdrmeulen@2017
     1
# mingw options
bartvdrmeulen@2017
     2
diorcet@3112
     3
## depends on WINDOWS
yann@2444
     4
##
yann@2444
     5
## select LIBC_SUPPORT_WIN32THREADS
yann@2444
     6
##
yann@2444
     7
## help The de-facto standard for Mingw distributions.
bartvdrmeulen@2017
     8
bartvdrmeulen@2017
     9
choice
bartvdrmeulen@2017
    10
    bool
diorcet@3112
    11
    prompt "Windows API version"
bartvdrmeulen@2017
    12
bartvdrmeulen@2017
    13
# Don't remove next line
bartvdrmeulen@2017
    14
# CT_INSERT_VERSION_BELOW
diorcet@3112
    15
config WINAPI_V_2_0_7
bartvdrmeulen@2017
    16
    bool
diorcet@3112
    17
    prompt "2.0.7"
bartvdrmeulen@2017
    18
diorcet@3112
    19
config WINAPI_V_select
bartvdrmeulen@2017
    20
    bool
bartvdrmeulen@2017
    21
    prompt "Other version"
bartvdrmeulen@2017
    22
bartvdrmeulen@2017
    23
endchoice
bartvdrmeulen@2017
    24
diorcet@3112
    25
config WINAPI_VERSION
bartvdrmeulen@2017
    26
    string
diorcet@3112
    27
    prompt "Windows API version" if WINAPI_V_select
bartvdrmeulen@2017
    28
# Don't remove next line
bartvdrmeulen@2017
    29
# CT_INSERT_VERSION_STRING_BELOW
diorcet@3112
    30
    default "2.0.7" if WINAPI_V_2_0_7
bartvdrmeulen@2017
    31
    help
diorcet@3112
    32
      Enter the version number of the Windows API files to use
bartvdrmeulen@2017
    33
diorcet@3112
    34
config MINGW_DIRECTX
diorcet@3112
    35
    bool
diorcet@3112
    36
    prompt "Include DirectX development files"
diorcet@3112
    37
diorcet@3112
    38
config MINGW_DDK
diorcet@3112
    39
    bool
diorcet@3112
    40
    prompt "Include DDK development files"