Application files are not stripped

I have a Legato application from which I make an update file with (mkapp) pointing to its .adef file, update is installed and I can do a search on the target (WP76xx) to locate executable.
After finding the executable I saw that its not stripped and contains debug info, my question would be how to build an app without debug info and strip it?

myApplication: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=06feee0b3f48b37969188e08b1f106d40c2e2d0f, with debug_info, not stripped

Hi,

Did you try to add a ldflags section in your cdef file with --strip-all?
https://docs.legato.io/latest/defFilesCdef.html#defFilesCdef_ldFlags

Jay

I’ve added that to my ldflags section and I get this as a result:

arm-poky-linux-gnueabi-g++: error: unrecognized command line option ‘–strip-all’; did you mean ‘–warn-all’?

Am I missing something more? Thank you for suggestions

Lazzo

Sorry, my bad.
Please replace “--strip-all” by “-s”.

1 Like

Thank you so much for helping me with this, it did the job.
Lazzo