summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-08-25 23:08:14 +0000
committerMike Frysinger <vapier@gentoo.org>2005-08-25 23:08:14 +0000
commit4147ffbcc6e2c20ab9bc1b43330244abe5a10b63 (patch)
tree2f18d3d01af4ea5bb70137acf214a1a0f2dbd922 /Rules.mak
parentcb7e38cfb8ccc4d57b61b92dc9e94d6bde383ceb (diff)
optimize library based upon sparc cpu selection
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak7
1 files changed, 7 insertions, 0 deletions
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