From: Mike Frysinger <vapier@gentoo.org>
To: Josh Boyer <jwboyer@gmail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: [PATCH] respect CFLAGS/CPPFLAGS from build environment
Date: Fri, 13 Jun 2008 17:11:21 -0400 [thread overview]
Message-ID: <200806131711.21891.vapier@gentoo.org> (raw)
In-Reply-To: <20080613105153.31449aa5@vader.jdub.homelinux.org>
[-- Attachment #1: Type: text/plain, Size: 1472 bytes --]
On Friday 13 June 2008, Josh Boyer wrote:
> On Wed, 11 Jun 2008 17:49:08 -0400
>
> Mike Frysinger <vapier@gentoo.org> wrote:
> > diff --git a/ubi-utils/Makefile b/ubi-utils/Makefile
> > index 0394eee..062cc32 100644
> > --- a/ubi-utils/Makefile
> > +++ b/ubi-utils/Makefile
> > @@ -2,7 +2,6 @@
> > # Makefile for ubi-utils
> > #
> >
> > -OPTFLAGS := -O2 -g -Wall
> > KERNELHDR := ../include
> > DESTDIR := /usr/local
> > SBINDIR=/usr/sbin
> > @@ -10,8 +9,10 @@ MANDIR=/usr/share/man
> > INCLUDEDIR=/usr/include
> >
> > CC := $(CROSS)gcc
> > -CFLAGS := -I./inc -I./src -I$(KERNELHDR) $(OPTFLAGS) -Werror \
> > - -Wwrite-strings -W -std=gnu99 -DPACKAGE_VERSION=\"1.0\"
> > +CFLAGS ?= -O2 -g -Werror
> > +CFLAGS += -Wall -Wwrite-strings -W
> > +CPPFLAGS += -I./inc -I./src -I$(KERNELHDR) \
> > + -std=gnu99 -DPACKAGE_VERSION=\"1.0\"
> >
> > PERLPROGS = mkpfi ubicrc32.pl
> >
> > @@ -26,7 +27,7 @@ vpath %.c ./src
> > $(CC) $(LDFLAGS) -g -o $@ $^
> >
> > %.o: %.c
> > - $(CC) $(CFLAGS) -g -c -o $@ $< -g -Wp,-MD,.$(shell basename $<).dep
> > + $(CC) $(CPPFLAGS) $(CFLAGS) -g -c -o $@ $< -g -Wp,-MD,.$(shell basename
> > $<).dep
>
> Should either remove the unconditional -g here, or not specify it in
> the default CFLAGS above, correct?
moving -g in both Makefiles to the default CFLAGS makes the most sense to
me ... i just figured someone liked it the way it was and i didnt really care
to fight em for it.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 835 bytes --]
next prev parent reply other threads:[~2008-06-13 21:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-11 21:49 [PATCH] respect CFLAGS/CPPFLAGS from build environment Mike Frysinger
2008-06-13 14:51 ` Josh Boyer
2008-06-13 21:11 ` Mike Frysinger [this message]
2008-06-16 16:12 ` Josh Boyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200806131711.21891.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=jwboyer@gmail.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox