[Buildroot] [PATCH 1/1] package/gdb: fix shared-only build
romain.naour at openwide.fr
Tue Dec 16 20:16:16 UTC 2014
Le 16/12/2014 08:13, Thomas Petazzoni a écrit :
> Dear Romain Naour,
> On Sun, 14 Dec 2014 23:47:24 +0100, Romain Naour wrote:
>> When --disable-static is given to the gdb's main configure script,
>> it also disable the static build of bundled libraries like bfd, readline
>> and opcodes, which must be build statically.
>> Signed-off-by: Romain Naour <romain.naour at openwide.fr>
>> Cc: "Yann E. MORIN" <yann.morin.1998 at free.fr>
>> package/gdb/0001-bfd-force-static-build.patch | 79 +++++++++++++++++++++
>> package/gdb/0002-readline-force-static-build.patch | 34 +++++++++
>> .../gdb/0003-libopcodes-force-static-build.patch | 80 ++++++++++++++++++++++
>> 3 files changed, 193 insertions(+)
>> create mode 100644 package/gdb/0001-bfd-force-static-build.patch
>> create mode 100644 package/gdb/0002-readline-force-static-build.patch
>> create mode 100644 package/gdb/0003-libopcodes-force-static-build.patch
> Are you sure patching gdb is the right direction here? I believe those
> patches have no chance to be merged upstream, so patching is not the
> right solution.
Sorry, this patch should have been marked as RFC.
> A better solution is probably to re-add --enable-static to
> GDB_CONF_OPTS, even if we're doing a shared only build. This doesn't
> require patching gdb, and is more compliant with what upstream wants:
> doing a pure shared build of gdb isn't supported.
Ok, I'm fine with this solution.
I wanted to show what I had done in order to compile gdb in shared only case
without re-add --enable-static in GDB_CONF_OPTS.
I agree patching gdb is not an elegant solution.
What I have observed since shared only build are available, is that some
packages pass --disable-static or disable static build for their build-in
libraries even when they should be build statically :-/
OPEN WIDE Ingénierie - Paris
23/25, rue Daviel| 75013 PARIS
Le blog des technologies libres et embarquées :
More information about the buildroot