From 4147ffbcc6e2c20ab9bc1b43330244abe5a10b63 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 25 Aug 2005 23:08:14 +0000 Subject: optimize library based upon sparc cpu selection --- Rules.mak | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Rules.mak b/Rules.mak index 3d3f0e7fa..68d411ebc 100644 --- a/Rules.mak +++ b/Rules.mak @@ -141,6 +141,13 @@ ifeq ($(strip $(TARGET_ARCH)),i386) CPU_CFLAGS-$(CONFIG_NEHEMIAH)+=$(call check_gcc,-march=c3-2,-march=i686) endif +ifeq ($(strip $(TARGET_ARCH)),sparc) + CPU_CFLAGS-$(CONFIG_SPARC_V7)+=-mcpu=v7 + CPU_CFLAGS-$(CONFIG_SPARC_V8)+=-mcpu=v8 + CPU_CFLAGS-$(CONFIG_SPARC_V9)+=-mcpu=v9 + CPU_CFLAGS-$(CONFIG_SPARC_V9B)+=$(call check_gcc,-mcpu=v9b,-mcpu=ultrasparc) +endif + ifeq ($(strip $(TARGET_ARCH)),arm) OPTIMIZATION+=-fstrict-aliasing CPU_LDFLAGS-$(ARCH_LITTLE_ENDIAN)+=-EL -- cgit v1.2.3