aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-devtools/cctools-port/cctools-port-crosssdk_973.0.1.bb
blob: 408215046d45396772037e532a80dbbd11851711 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
DESCRIPTION = "Linux port of Apple CCTools"
SECTION = "devel"
LICENSE = "ApplePSLicense-2.0"
LIC_FILES_CHKSUM = "file://cctools/APPLE_LICENSE;md5=dacaafbaf91483700da837d31213a1e8"

SRCREV = "f28fb5e9c31efd3d0552afcce2d2c03cae25c1ca"
SRC_URI = "git://github.com/tpoechtrager/cctools-port.git;branch=master;protocol=https"

PR = "r2"

inherit autotools crosssdk

DEPENDS += "util-linux-native openssl-native xar-native libtapi-native"
PROVIDES = "virtual/${TARGET_PREFIX}binutils-crosssdk"

DEPENDS += "clang-native libcxx-native"

TOOLCHAIN:class-crosssdk = "clang"
COMPILER_RT:class-crosssdk = "-rtlib=libgcc --unwindlib=libgcc"
LIBCPLUSPLUS:class-crosssdk = "-stdlib=libc++ -lc++abi"

EXTRA_OECONF:append = " \
    --with-llvm-config=${STAGING_DIR_NATIVE}/usr/bin/llvm-config \
    --enable-lto-support \
    --enable-xar-support \
    --with-libxar=${STAGING_DIR_NATIVE}/usr \
    --enable-tapi-support \
    --with-libtapi=${STAGING_DIR_NATIVE}/usr \
"

S = "${WORKDIR}/git"
B = "${WORKDIR}/build"

AUTOTOOLS_SCRIPT_PATH = "${S}/cctools"

do_configure:prepend() {
    PWD_CUR=$(pwd)
    cd ${AUTOTOOLS_SCRIPT_PATH}
    libtoolize
    cd ${PWD_CUR}
}