]> code.ossystems Code Review - openembedded-core.git/commitdiff
binutils: Use target provided zlib
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 31 Jan 2016 13:21:06 +0000 (13:21 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 31 Jan 2016 16:28:54 +0000 (16:28 +0000)
When using -fpie (security related cflags), qemux6-64 builds would
fail due to linker symbol errors. This was due to the internal zlib
that binutils was using.

Add the switch to tell it to use the target system zlib which is
already in DEPENDS. That zlib is already compiled with the correct
flags.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/binutils/binutils_2.26.bb

index 6f42671ed0fb03c571604ea72bb6639cedc52cb6..b70ffbf28af05adf0761605997e04c9f5d4589cd 100644 (file)
@@ -7,6 +7,7 @@ EXTRA_OECONF += "--with-sysroot=/ \
                 --enable-install-libbfd \
                 --enable-install-libiberty \
                 --enable-shared \
+                --with-system-zlib \
                 "
 
 EXTRA_OECONF_class-native = "--enable-targets=all \