summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-12-15 12:30:25 +0100
committerKay Sievers <kay.sievers@suse.de>2005-12-15 12:30:25 +0100
commitc756114f8e78f2b7d17ac9f5c3e6cd76e3648601 (patch)
tree13ae5eb222236baf8e745c39abd17b6f8807f02e /Makefile
parentd313632b04e2277306af74738df0b4444bcad695 (diff)
allow C99 statements
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 1 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index cd789f82fd..774d5e154a 100644
--- a/Makefile
+++ b/Makefile
@@ -133,20 +133,15 @@ HOSTCC = gcc
STRIP = $(CROSS)strip
STRIPCMD = $(STRIP) -s
-# check if compiler option is supported
-cc-supports = ${shell if $(CC) ${1} -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi;}
-
CFLAGS = -g -Wall -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
WARNINGS = -Wstrict-prototypes -Wsign-compare -Wshadow \
-Wchar-subscripts -Wmissing-declarations -Wnested-externs \
-Wpointer-arith -Wcast-align -Wsign-compare -Wmissing-prototypes
-WARNINGS += $(call cc-supports, -Wdeclaration-after-statement, )
CFLAGS += $(WARNINGS)
LDFLAGS = -Wl,-warn-common
-# use -Os optimization if available, else use -O2
-OPTFLAGS := $(call cc-supports, -Os, -O2)
+OPTFLAGS = -Os
CFLAGS += $(OPTFLAGS)
# include our local copy of libsysfs