From c5e3df5d8eccb0bb79d1a54561e00a5d4cd2d1c5 Mon Sep 17 00:00:00 2001 From: pexcn Date: Mon, 21 Sep 2015 12:38:39 +0800 Subject: [PATCH] use global -O3 optimize && disable -g debug option optimize --- Makefile | 2 +- hostapd-0.8/hostapd/Makefile | 2 +- hostapd-0.8/src/lib.rules | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a855405..5477f9f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ SHELL := /bin/bash EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS) -EXTRA_CFLAGS += -O1 +EXTRA_CFLAGS += -O3 -pipe -ffast-math -ftree-vectorize EXTRA_CFLAGS += -Wno-unused-variable EXTRA_CFLAGS += -Wno-unused-value diff --git a/hostapd-0.8/hostapd/Makefile b/hostapd-0.8/hostapd/Makefile index d05975b..165e7af 100644 --- a/hostapd-0.8/hostapd/Makefile +++ b/hostapd-0.8/hostapd/Makefile @@ -3,7 +3,7 @@ CC=gcc endif ifndef CFLAGS -CFLAGS = -MMD -O2 -Wall -g +CFLAGS = -MMD -O3 -pipe -ffast-math -ftree-vectorize -Wall endif CFLAGS += -I../src diff --git a/hostapd-0.8/src/lib.rules b/hostapd-0.8/src/lib.rules index b260d25..017975e 100644 --- a/hostapd-0.8/src/lib.rules +++ b/hostapd-0.8/src/lib.rules @@ -3,7 +3,7 @@ CC=gcc endif ifndef CFLAGS -CFLAGS = -MMD -O2 -Wall -g +CFLAGS = -MMD -O3 -pipe -ffast-math -ftree-vectorize -Wall endif CFLAGS += -I.. -I../utils