PR = "${INC_PR}.0"

require klibc.inc
SUMMARY = "The klcc crosscompiler for klibc"

export KLCC_INST = "${STAGING_DIR_TARGET}/lib/klibc"

SRC_URI += "file://klcc_prefix.patch \
            file://use-env-for-perl.patch"

DEPENDS = "klibc"

FILESPATH =. "${FILE_DIRNAME}/klibc-${PV}:"

inherit cross

do_configure () {
    :
}

do_compile() {
    oe_runmake klcc
}

do_install() {
    install -d ${D}${base_bindir}
    install -m 0755 klcc/klcc ${D}${base_bindir}/${TARGET_PREFIX}klcc
}
