]> code.ossystems Code Review - meta-freescale.git/commitdiff
elftosb: fix linking failure due missing math's library
authorOtavio Salvador <otavio@ossystems.com.br>
Fri, 20 Apr 2012 21:11:30 +0000 (18:11 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 20 Apr 2012 21:15:08 +0000 (18:15 -0300)
To proper link we need to pass LIBS='-lstdc++ -lm' for make, avoiding
the need of patching the build system.

Reported-by: John Passaniti <jpassaniti@ashly.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/recipes-bsp/elftosb/elftosb_10.12.01.bb

index ebfd4f28df7d869b723fa0d1c4c33167db4d5060..550c65c382e159ad14e633790e82a235d9a819a1 100644 (file)
@@ -5,13 +5,15 @@ DESCRIPTION = "Helper utility for freescale imx platforms"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://COPYING;md5=172ede34353056ebec7a597d8459f029"
 SECTION = "bootloader"
-PR = "r0"
+PR = "r1"
 BBCLASSEXTEND = "native"
 
 SRC_URI = "http://repository.timesys.com/buildsources/e/elftosb/elftosb-${PV}.tar.gz"
 SRC_URI[md5sum] = "e8005d606c1e0bb3507c82f6eceb3056"
 SRC_URI[sha256sum] = "77bb6981620f7575b87d136d94c7daa88dd09195959cc75fc18b138369ecd42b"
 
+EXTRA_OEMAKE += "LIBS='-lstdc++ -lm'"
+
 do_install() {
     install -d ${D}${bindir}
     install ${S}/bld/linux/elftosb ${D}${bindir}