netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Christoph J. Thompson" <cjsthompson@gmail.com>
To: netdev@vger.kernel.org
Subject: [PATCH 2/4] iproute2 - Split up cflags. Allows setting optimisation flags at compile time without patching the Makefile.
Date: Thu, 1 Mar 2012 17:45:17 +0100	[thread overview]
Message-ID: <20120301164514.GA24274@gmail.com> (raw)

	modified:   Makefile

Signed-off-by: Christoph J. Thompson <cjsthompson@gmail.com>
---
 Makefile |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index c6e4943..014d497 100644
--- a/Makefile
+++ b/Makefile
@@ -29,8 +29,10 @@ ADDLIB+=ipx_ntop.o ipx_pton.o
 
 CC = gcc
 HOSTCC = gcc
-CCOPTS = -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall
-CFLAGS = $(CCOPTS) -I../include $(DEFINES)
+DEFINES += -D_GNU_SOURCE
+CCOPTS = -O2
+WFLAGS = -Wall -Wstrict-prototypes
+CFLAGS = $(WFLAGS) $(CCOPTS) -I../include $(DEFINES)
 YACCFLAGS = -d -t -v
 
 SUBDIRS=lib ip tc misc netem genl
-- 
1.7.4.4


-- 
Jabber: heimdal@jabber.org

                 reply	other threads:[~2012-03-01 16:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20120301164514.GA24274@gmail.com \
    --to=cjsthompson@gmail.com \
    --cc=netdev@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).