[meta-freescale] [PATCH 2/3] imx-boot: imx-mkimage: do not compile with -static

Max Krummenacher max.oss.09 at gmail.com
Mon Jan 28 07:05:49 PST 2019


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 at toradex.com>
---
 recipes-bsp/imx-mkimage/imx-boot_0.2.bb    | 2 +-
 recipes-bsp/imx-mkimage/imx-mkimage_git.bb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes-bsp/imx-mkimage/imx-boot_0.2.bb b/recipes-bsp/imx-mkimage/imx-boot_0.2.bb
index 30a732fa..68492a9b 100644
--- a/recipes-bsp/imx-mkimage/imx-boot_0.2.bb
+++ b/recipes-bsp/imx-mkimage/imx-boot_0.2.bb
@@ -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
diff --git a/recipes-bsp/imx-mkimage/imx-mkimage_git.bb b/recipes-bsp/imx-mkimage/imx-mkimage_git.bb
index b0a2719f..5304ebf9 100644
--- a/recipes-bsp/imx-mkimage/imx-mkimage_git.bb
+++ b/recipes-bsp/imx-mkimage/imx-mkimage_git.bb
@@ -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}
-- 
2.13.6



More information about the meta-freescale mailing list