scripts/build/kernel/windows.sh
author Daniel Price <daniel.price@gmail.com>
Tue Nov 20 16:59:17 2012 -0800 (2012-11-20)
changeset 3126 333d3e40cbd1
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
diorcet@3112
     1
# This file declares functions to install the kernel headers for mingw64
diorcet@3112
     2
# Copyright 2012 Yann Diorcet
diorcet@3112
     3
# Licensed under the GPL v2. See COPYING in the root of this package
diorcet@3112
     4
diorcet@3112
     5
CT_DoKernelTupleValues() {
diorcet@3112
     6
    # Even we compile for x86_64 target architecture, the target OS have to
diorcet@3112
     7
    # bet mingw32 (require by gcc and mingw-w64)
diorcet@3112
     8
    CT_TARGET_KERNEL="mingw32"
diorcet@3112
     9
    CT_TARGET_SYS=
diorcet@3112
    10
}
diorcet@3112
    11
diorcet@3112
    12
do_kernel_get() {
diorcet@3112
    13
    :
diorcet@3112
    14
}
diorcet@3112
    15
diorcet@3112
    16
do_kernel_extract() {
diorcet@3112
    17
    :
diorcet@3112
    18
}
diorcet@3112
    19
diorcet@3112
    20
do_kernel_headers() {
diorcet@3112
    21
   :
diorcet@3112
    22
}