diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-01-15 03:02:05 -0500 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-01-15 18:54:52 +0100 |
commit | 1391c319354b09cb2979cccb447355f61bf2e62c (patch) | |
tree | 8d1695f6e128314e289181017d5af7e2598b72ef | |
parent | afa198d05762db226765c1aa521c3a1a379f467c (diff) | |
download | cpufrequtils-1391c319354b09cb2979cccb447355f61bf2e62c.tar.gz |
punt dead/unwanted build code
We don't care what ARCH we're building on or where the gcc internal
headers and libraries are. The toolchain takes care of all of this
stuff for us sanely.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
-rw-r--r-- | Makefile | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -100,17 +100,7 @@ HOSTCC = gcc # set up PWD so that older versions of make will work with our build. PWD = $(shell pwd) -export CROSS CC AR STRIP RANLIB CFLAGS LDFLAGS LIB_OBJS ARCH_LIB_OBJS CRT0 - -# code taken from uClibc to determine the current arch -ARCH := ${shell $(CC) -dumpmachine | sed -e s'/-.*//' -e 's/i.86/i386/' -e 's/sparc.*/sparc/' \ - -e 's/arm.*/arm/g' -e 's/m68k.*/m68k/' -e 's/powerpc/ppc/g'} - -# code taken from uClibc to determine the gcc include dir -GCCINCDIR := ${shell LC_ALL=C $(CC) -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp"} - -# code taken from uClibc to determine the libgcc.a filename -GCC_LIB := $(shell $(CC) -print-libgcc-file-name ) +export CROSS CC AR STRIP RANLIB CFLAGS LDFLAGS LIB_OBJS # use '-Os' optimization if available, else use -O2 OPTIMIZATION := ${shell if $(CC) -Os -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \ @@ -154,7 +144,7 @@ ifeq ($(strip $(CPUFRQ_BENCH)),true) COMPILE_BENCH += compile-bench endif -CFLAGS += $(WARNINGS) -I$(GCCINCDIR) +CFLAGS += $(WARNINGS) ifeq ($(strip $(V)),false) QUIET=@$(PWD)/build/ccdv |