From patchwork Wed Mar 4 19:51:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 5939881 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 63CA5BF440 for ; Wed, 4 Mar 2015 19:52:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B5CB9202F8 for ; Wed, 4 Mar 2015 19:52:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E031520254 for ; Wed, 4 Mar 2015 19:52:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759345AbbCDTwH (ORCPT ); Wed, 4 Mar 2015 14:52:07 -0500 Received: from smtp.gentoo.org ([140.211.166.183]:39537 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758884AbbCDTwA (ORCPT ); Wed, 4 Mar 2015 14:52:00 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id B91E33407A8 for ; Wed, 4 Mar 2015 19:51:59 +0000 (UTC) From: Mike Frysinger To: linux-wireless@vger.kernel.org Subject: [PATCH crda 4/4] clean up CFLAGS handling Date: Wed, 4 Mar 2015 14:51:54 -0500 Message-Id: <1425498714-8654-4-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 2.3.1 In-Reply-To: <1425498714-8654-1-git-send-email-vapier@gentoo.org> References: <1425498714-8654-1-git-send-email-vapier@gentoo.org> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@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 From: Mike Frysinger Rather than append -O2 -g all the time to the user's CFLAGS (and thus clobbering whatever they have set up), initialize the default value to that and let the user override it entirely. Signed-off-by: Mike Frysinger --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5f988f4..8e345a1 100644 --- a/Makefile +++ b/Makefile @@ -26,9 +26,9 @@ PUBKEY_DIR?=pubkeys RUNTIME_PUBKEY_DIR?=/etc/wireless-regdb/pubkeys WERROR = -Werror -CFLAGS += -O2 -fpic +CFLAGS ?= -O2 -g +CFLAGS += -fpic CFLAGS += -std=gnu99 -Wall $(WERROR) -pedantic -CFLAGS += -Wall -g LDLIBREG += -lreg LDLIBS += $(LDLIBREG) LDLIBS += -lm