On 11/07/2019 02:12, Chris Johns wrote:
On 11/7/19 2:20 am, Sebastian Huber wrote:
----- Am 10. Jul 2019 um 15:14 schrieb joelj...@rtems.org:

On Wed, Jul 10, 2019 at 6:39 AM Sebastian Huber <
sebastian.hu...@embedded-brains.de> wrote:

On 10/07/2019 13:33, Nils Hölscher wrote:
I am currently trying to add the fdt-shell commands to my application
but rtems zlib won't link with -lz added to gcc.
The short answer is that you have to use "-lrtemscpu -lz" on the command
line.

Shouldn't -lrtemscpu always be implied? So just the -lz
We have this problem always when something in librtemscpu.a uses libz.a. The 
librtemscpu.a is added by -qrtems at the end, so the linker doesn't find the 
libz.a which is given earlier at the command line.
Does this mean we should add -z tto the specs?

I sent a GCC patch doing this a couple of year ago and it was rejected. The alternative was to add a separate libjffs2.a.

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to