From patchwork Thu Feb 5 20:31:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Sandeen X-Patchwork-Id: 5786721 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E59A59F2ED for ; Thu, 5 Feb 2015 20:31:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2FD3420274 for ; Thu, 5 Feb 2015 20:31:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4C33620222 for ; Thu, 5 Feb 2015 20:31:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752374AbbBEUbb (ORCPT ); Thu, 5 Feb 2015 15:31:31 -0500 Received: from mx1.redhat.com ([209.132.183.28]:33171 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751077AbbBEUbb (ORCPT ); Thu, 5 Feb 2015 15:31:31 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t15KVRw5009999 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 5 Feb 2015 15:31:27 -0500 Received: from liberator.sandeen.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t15KVPoB032350 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 5 Feb 2015 15:31:26 -0500 Message-ID: <54D3D31D.40802@redhat.com> Date: Thu, 05 Feb 2015 14:31:25 -0600 From: Eric Sandeen MIME-Version: 1.0 To: linux-btrfs , David Sterba Subject: [PATCH] btrfs-progs: allow CFLAGS specification in new build X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Disclaimer: I am not an auto$FOO expert by any means. But I could find no way to specify additional CFLAGS, and I think that this is because they are hard-coded in configure.ac. The below works for me, but I don't know if it's the right solution... Signed-off-by: Eric Sandeen --- -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Makefile.in b/Makefile.in index 93b6a3c..4a36f6a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -12,6 +12,7 @@ DISABLE_BTRFSCONVERT = @DISABLE_BTRFSCONVERT@ # Non-static compilation flags CFLAGS = @CFLAGS@ \ + -g -O1 \ -include config.h -Wall \ -D_FILE_OFFSET_BITS=64 -DBTRFS_FLAT_INCLUDES \ -D_XOPEN_SOURCE=700 \ diff --git a/configure.ac b/configure.ac index cbad099..f6ebb7d 100644 --- a/configure.ac +++ b/configure.ac @@ -8,8 +8,6 @@ LIBBTRFS_MAJOR=0 LIBBTRFS_MINOR=1 LIBBTRFS_PATCHLEVEL=1 -CFLAGS="-g -O1" - AC_PREREQ([2.60]) AC_CONFIG_AUX_DIR([config])