[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190611180513.30772-1-mcroce@redhat.com>
Date: Tue, 11 Jun 2019 20:05:13 +0200
From: Matteo Croce <mcroce@...hat.com>
To: netdev@...r.kernel.org
Cc: Stephen Hemminger <stephen@...workplumber.org>,
David Ahern <dsahern@...nel.org>
Subject: [PATCH iproute2-next] Makefile: pass -pipe to the compiler
Pass the -pipe option to GCC, to use pipes instead of temp files.
On a slow AMD G-T40E CPU we get a non negligible 6% improvement
in build time.
real 1m15,111s
user 1m2,521s
sys 0m12,465s
real 1m10,861s
user 1m2,520s
sys 0m12,901s
Signed-off-by: Matteo Croce <mcroce@...hat.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 48f469b0..6c35e7c2 100644
--- a/Makefile
+++ b/Makefile
@@ -48,7 +48,7 @@ HOSTCC ?= $(CC)
DEFINES += -D_GNU_SOURCE
# Turn on transparent support for LFS
DEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-CCOPTS = -O2
+CCOPTS = -O2 -pipe
WFLAGS := -Wall -Wstrict-prototypes -Wmissing-prototypes
WFLAGS += -Wmissing-declarations -Wold-style-definition -Wformat=2
--
2.21.0
Powered by blists - more mailing lists