From patchwork Wed Dec 17 21:37:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 422382 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id A4FA4140081 for ; Thu, 18 Dec 2014 08:37:31 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D1FDB8C00D; Wed, 17 Dec 2014 21:37:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PAbbSUqs0jof; Wed, 17 Dec 2014 21:37:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id C91498C04E; Wed, 17 Dec 2014 21:37:29 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 9458B1C2236 for ; Wed, 17 Dec 2014 21:37:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8E0DA8C00D for ; Wed, 17 Dec 2014 21:37:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LxIDz9JW8CdB for ; Wed, 17 Dec 2014 21:37:27 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from smtp1-g21.free.fr (smtp1-g21.free.fr [212.27.42.1]) by whitealder.osuosl.org (Postfix) with ESMTPS id 0B90E8C198 for ; Wed, 17 Dec 2014 21:37:26 +0000 (UTC) Received: from localhost.localdomain (unknown [81.57.22.125]) by smtp1-g21.free.fr (Postfix) with ESMTP id F1C7A94003C; Wed, 17 Dec 2014 22:36:38 +0100 (CET) From: Romain Naour To: buildroot@buildroot.org Date: Wed, 17 Dec 2014 22:37:05 +0100 Message-Id: <1418852225-7144-1-git-send-email-romain.naour@openwide.fr> X-Mailer: git-send-email 1.9.3 Subject: [Buildroot] [PATCH v4] package/gdb: fix shared-only build X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The shared build only of gdb is actually not supported. 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. Force the static build of bundled libraries by adding --enable-static in GDB_CONF_OPTS. Fixes: http://autobuild.buildroot.net/results/219/21979e730dca1fce5bdda9a4c7fad4485e788866/ http://autobuild.buildroot.net/results/c10/c1096d0bd22de5c6feba848f743601ad0416a944/ http://autobuild.buildroot.net/results/d8a/d8a5bcc7fa374fb0c916a9d0f33ef283109cb404/ http://autobuild.buildroot.net/results/22a/22a86d0f1df0fc4698c0f734f3d659e6317404a4/ http://autobuild.buildroot.net/results/404/404e61e5c30040ee5756f4b5839149dca38660d4/ And many more. Signed-off-by: Romain Naour Acked-by: "Yann E. MORIN" --- v4: Fix typos (ThomasP) v3: Add a comment in gdb.mk (ThomasP) v2: D'ont patch gdb, just enable static build. --- package/gdb/gdb.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk index dbec760..aa22193 100644 --- a/package/gdb/gdb.mk +++ b/package/gdb/gdb.mk @@ -74,6 +74,8 @@ GDB_CONF_ENV = \ bash_cv_have_mbstate_t=yes \ gdb_cv_func_sigsetjmp=yes +# The shared only build is not supported by gdb, so enable static build for +# build-in libraries with --enable-static. GDB_CONF_OPTS = \ --without-uiout \ --disable-gdbtk \ @@ -83,7 +85,8 @@ GDB_CONF_OPTS = \ $(if $(BR2_PACKAGE_GDB_SERVER),--enable-gdbserver) \ --with-curses \ --without-included-gettext \ - --disable-werror + --disable-werror \ + --enable-static ifeq ($(BR2_PACKAGE_GDB_TUI),y) GDB_CONF_OPTS += --enable-tui