scripts/build/kernel/mingw32.sh
author "Bryan Hundven" <bryanhundven@gmail.com>
Thu Mar 01 15:23:49 2012 -0800 (2012-03-01)
changeset 2909 28ac8fbd9e6a
parent 2084 2bcd716ca877
permissions -rw-r--r--
libg/eglibc: add updated eglibc 2.15

Includes a patch to remove __builtin_expect test:

In eglibc-2.15, the build breaks in configure while testing
for the existance of __builtin_expect. It fails with newer
versions of gcc.

This patch is a modification of an upstream change in glibc
mainline (to be 2.16) to fix the following error:

[CFG ] checking for __builtin_expect... no
[ERROR] configure: error: support for __builtin_expect needed

http://sourceware.org/git/?p=glibc.git;a=commit;h=3857022a761ea7251f8e5c0e45d382ebc3e34cf9

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
[yann.morin.1998@free.fr: coalesce both patches into a single changeset]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
bartvdrmeulen@2017
     1
# This file declares functions to install the kernel headers for mingw
bartvdrmeulen@2017
     2
# Copyright 2009 Bart vdr. Meulen
bartvdrmeulen@2017
     3
# Licensed under the GPL v2. See COPYING in the root of this package
bartvdrmeulen@2017
     4
bartvdrmeulen@2017
     5
CT_DoKernelTupleValues() {
bartvdrmeulen@2017
     6
    CT_TARGET_KERNEL="mingw32"
bartvdrmeulen@2017
     7
    CT_TARGET_SYS=
bartvdrmeulen@2017
     8
}
bartvdrmeulen@2017
     9
bartvdrmeulen@2017
    10
do_kernel_get() {
bartvdrmeulen@2017
    11
    CT_GetFile "w32api-${CT_W32API_VERSION}-mingw32-src" \
bartvdrmeulen@2017
    12
        http://downloads.sourceforge.net/sourceforge/mingw
bartvdrmeulen@2017
    13
}
bartvdrmeulen@2017
    14
bartvdrmeulen@2017
    15
do_kernel_extract() {
bartvdrmeulen@2017
    16
    CT_Extract "w32api-${CT_W32API_VERSION}-mingw32-src"
bartvdrmeulen@2017
    17
}
bartvdrmeulen@2017
    18
bartvdrmeulen@2017
    19
do_kernel_headers() {
bartvdrmeulen@2017
    20
    CT_DoStep INFO "Installing kernel headers"
bartvdrmeulen@2017
    21
eha@2084
    22
    mkdir -p "${CT_HEADERS_DIR}"
yann@2580
    23
    cp -r ${CT_SRC_DIR}/w32api-${CT_W32API_VERSION}-mingw32-src/include/*   \
eha@2084
    24
          ${CT_HEADERS_DIR}
bartvdrmeulen@2017
    25
bartvdrmeulen@2017
    26
    CT_EndStep
bartvdrmeulen@2017
    27
}