]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-boot: imx-mkimage: do not compile with -static
authorMax Krummenacher <max.oss.09@gmail.com>
Mon, 28 Jan 2019 15:05:49 +0000 (16:05 +0100)
committerDaiane Angolini <daiane.angolini@nxp.com>
Tue, 29 Jan 2019 17:03:40 +0000 (15:03 -0200)
E.g. Fedora doesn't install glibc-static by default and the yocto
prerequisites do not mandate installing it. Rather than requiring
glibc-static drop linking with -static.

Works around:
| .../build/tmp/hosttools/ld: cannot find -lc

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
recipes-bsp/imx-mkimage/imx-boot_0.2.bb
recipes-bsp/imx-mkimage/imx-mkimage_git.bb

index 30a732fa67bcbe939fb1f3cea69e5c7a0fe567da..68492a9bdaf00b7239654e6352e6da4e4a5bf489 100644 (file)
@@ -23,7 +23,7 @@ PROVIDES = "${BOOT_NAME}"
 inherit deploy
 
 # Add CFLAGS with native INCDIR & LIBDIR for imx-mkimage build
-CFLAGS = "-O2 -Wall -std=c99 -static -I ${STAGING_INCDIR_NATIVE} -L ${STAGING_LIBDIR_NATIVE}"
+CFLAGS = "-O2 -Wall -std=c99 -I ${STAGING_INCDIR_NATIVE} -L ${STAGING_LIBDIR_NATIVE}"
 
 # This package aggregates output deployed by other packages,
 # so set the appropriate dependencies
index b0a2719ff500551fde314dce46d8ea63904941cd..5304ebf9e87cad81754674ba8b84ddcc57f45a87 100644 (file)
@@ -10,7 +10,7 @@ SECTION = "BSP"
 
 inherit native deploy
 
-CFLAGS = "-O2 -Wall -std=c99 -static -I ${STAGING_INCDIR} -L ${STAGING_LIBDIR}"
+CFLAGS = "-O2 -Wall -std=c99 -I ${STAGING_INCDIR} -L ${STAGING_LIBDIR}"
 
 do_compile () {
     cd ${S}