From patchwork Wed Feb 12 22:39:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Marcelo_Guti=C3=A9rrez=28UTN/FRH=29?= X-Patchwork-Id: 319855 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 2C4BB2C0084 for ; Thu, 13 Feb 2014 12:30:38 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 3F44293D2A; Thu, 13 Feb 2014 01:30:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bb-BqifOFw0P; Thu, 13 Feb 2014 01:30:35 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id A5F9493D40; Thu, 13 Feb 2014 01:30:35 +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 D40171C2288 for ; Thu, 13 Feb 2014 01:30:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D360E8C455 for ; Thu, 13 Feb 2014 01:30:34 +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 7nAZ+Z4aVPnR for ; Thu, 13 Feb 2014 01:30:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yh0-f48.google.com (mail-yh0-f48.google.com [209.85.213.48]) by whitealder.osuosl.org (Postfix) with ESMTPS id 10D058C288 for ; Thu, 13 Feb 2014 01:30:32 +0000 (UTC) Received: by mail-yh0-f48.google.com with SMTP id f10so9481113yha.35 for ; Wed, 12 Feb 2014 17:30:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jVPuV4HjpzLjoK7METWmUNxagCne2XHB2tid0qoaQTw=; b=LPd2qdeEquBua5HI/5sS99eTPZ8FtkToT+VNTLn+BuwXMu83sBxRT13TjJQKODvTtL thZoHVruRYryCw8kqkkTIqaf8wV2Sk01j5hOloaewK7OuqTTCLb+2bQ0rNc4FQSQHZAh ZUe1GntOUyFiCiU9nSx6ilxZKgeEwh4ZMCn+W4aexuYr/3KSfDSFbD4DD26X4AXei1Fp 3g41sz2+p6cvlKxRhmnO7/WUwIkbDsW3kECY+iY4NO7A+Epoiy8PURvMto4nHycLvOeK fJkOF99Afi2KDHLPg8RQButEZsUl4lXgEbH5RKFxWPgDCXa5uw3s5/XuiLoWOm5KWdqI Udzg== X-Received: by 10.236.122.165 with SMTP id t25mr31072619yhh.46.1392255031987; Wed, 12 Feb 2014 17:30:31 -0800 (PST) Received: from localhost.localdomain ([190.172.243.243]) by mx.google.com with ESMTPSA id s93sm731573yhp.1.2014.02.12.17.30.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Feb 2014 17:30:31 -0800 (PST) From: =?UTF-8?q?Marcelo=20Guti=C3=A9rrez?= To: buildroot@busybox.net Date: Wed, 12 Feb 2014 22:39:34 +0000 Message-Id: <1392244774-15356-2-git-send-email-kuyurix@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1392244774-15356-1-git-send-email-kuyurix@gmail.com> References: <1392244774-15356-1-git-send-email-kuyurix@gmail.com> Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH 2/2] package/mysql: fix debugging options X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net From: Marcelo Gutierrez The usual --{en,dis}able-debug passed by the infrastructure are not recognised by mysql's ./configure, as it uses unusual options. Also, debugging is only meaningfull to the server, not the client. Signed-off-by: Marcelo Gutierrez (UTN/FRH) [yann.morin.1998@free.fr: actually add the options, move in server if-block] Signed-off-by: "Yann E. MORIN" Cc: Arnout Vandecappelle --- package/mysql/mysql.mk | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/package/mysql/mysql.mk b/package/mysql/mysql.mk index 27afc9f..95b30b7 100644 --- a/package/mysql/mysql.mk +++ b/package/mysql/mysql.mk @@ -30,8 +30,7 @@ MYSQL_CONF_OPT = \ --without-libedit \ --without-readline \ --with-low-memory \ - --enable-thread-safe-client \ - $(ENABLE_DEBUG) + --enable-thread-safe-client ifeq ($(BR2_PACKAGE_MYSQL_SERVER),y) MYSQL_DEPENDENCIES += host-mysql host-bison @@ -57,6 +56,14 @@ MYSQL_CONF_OPT += \ --without-plugin-innodb_plugin \ --without-plugin-ndbcluster +# Debugging is only available for the server, so no need for +# this if-block outside of the server if-block +ifeq ($(BR2_ENABLE_DEBUG),y) +MYSQL_CONF_OPT += --with-debug=full +else +MYSQL_CONF_OPT += --without-debug +endif + define HOST_MYSQL_BUILD_CMDS $(MAKE) -C $(@D)/include my_config.h $(MAKE) -C $(@D)/mysys libmysys.a