Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package/gdb: gdbserver does not need zlib
Since 3341ceb (package/gdb: zlib is mandatory, not optional), zlib has become a mandatory dependencies of the gdb package. However, zlib is only needed for the debugger, gdb itself, while the server, gdbserver, does not use it. This means that, when building an SDK to be later reused as an external toolchain, the zlib headers and libraries are present in the sysroot of the toolchain, tainting the toolchain and making it unsuitable to be reused. As Julien noticed, for example, tcl will try and link with zlib if available, and at build time it is. But at runtime, it is not, and thus tclsh fails to run; see 7af8dee (package/tcl: add mandatory dependency to zlib) When we only need to build gdbserver, we still need to configure and build the whole gdb distribution, which means we call the top-level configure script; that script has no option to disable the detection of zlib: it wants to either use a system one, or it will build the bundled one. So, when we only build gdbserver, we tell configure to not use a system zlib. This triggers the build of the bundled one, but it is not linked with gdbserver so in the end it is not used on the target. Reported-by: Julien Olivain <[email protected]> Reported-by: Thomas Petazzoni <[email protected]> Signed-off-by: Yann E. MORIN <[email protected]> Cc: Fabrice Fontaine <[email protected]> Signed-off-by: Arnout Vandecappelle <[email protected]>
- Loading branch information