summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/newlib/newlib_4.1.0.bb
blob: 7ab5b2b94edd46869be66b88c24150b29daa506e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require newlib.inc

PROVIDES += "virtual/libc virtual/libiconv virtual/libintl"

do_configure() {
    export CC_FOR_TARGET="${CC}"
    ${S}/configure ${EXTRA_OECONF}
}

do_install_append() {
	# Move include files and libs to default directories so they can be picked up later
	mv -v ${D}${prefix}/${TARGET_SYS}/lib ${D}${libdir}
	mv -v ${D}${prefix}/${TARGET_SYS}/include ${D}${includedir}

	# Remove original directory
	rmdir ${D}${prefix}/${TARGET_SYS}
}

# No rpm package is actually created but -dev depends on it, avoid dnf error
RDEPENDS_${PN}-dev_libc-newlib = ""