From mboxrd@z Thu Jan 1 00:00:00 1970 From: Remy Bohmer Subject: Re: [PATCH 1/3] rt-tests: Support user supplied CFLAGS and LDFLAGS Date: Tue, 20 Mar 2012 20:31:58 +0100 Message-ID: References: <3343440fb02872debc8b49be5261aec530a205f3.1332270303.git.dvhart@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: linux-rt-users@vger.kernel.org, Clark Williams , John Kacur , Denys Dmytriyenko To: Darren Hart Return-path: Received: from mail-bk0-f46.google.com ([209.85.214.46]:42878 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756270Ab2CTTb7 (ORCPT ); Tue, 20 Mar 2012 15:31:59 -0400 Received: by bkcik5 with SMTP id ik5so336069bkc.19 for ; Tue, 20 Mar 2012 12:31:58 -0700 (PDT) In-Reply-To: <3343440fb02872debc8b49be5261aec530a205f3.1332270303.git.dvhart@linux.intel.com> Sender: linux-rt-users-owner@vger.kernel.org List-ID: Hi, 2012/3/20 Darren Hart : > Accept user supplied CFLAGS and LDFLAGS, overwriting the > Makefile supplied versions. This can cause the build to > fail if the user does not provide at least what the Makefile > defines, but so be it. > -CFLAGS = -D_GNU_SOURCE -Wall -Wno-nonnull -Isrc/include > +CFLAGS ?= -D_GNU_SOURCE -Wall -Wno-nonnull -Isrc/include > +LDFLAGS ?= Why not append the Makefile local flags to the user supplied flags? Something like: CFLAGS := $(CFLAGS) -D_GNU_SOURCE -Wall -Wno-nonnull -Isrc/include Kind regards, Remy