problemslinking Zlib
Chris Johns
chrisj at rtems.org
Thu Jul 11 00:12:39 UTC 2019
On 11/7/19 2:20 am, Sebastian Huber wrote:
> ----- Am 10. Jul 2019 um 15:14 schrieb joel joel at rtems.org:
>
>> On Wed, Jul 10, 2019 at 6:39 AM Sebastian Huber <
>> sebastian.huber at 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?
Chris
More information about the devel
mailing list