Blob Blame History Raw
Index: Makefile
===================================================================
--- Makefile	(revision 216221)
+++ Makefile	(working copy)
@@ -241,8 +241,10 @@
   _ASTCFLAGS+=-isystem /usr/local/include
 endif
 
-ifneq ($(PROC),ultrasparc)
-  _ASTCFLAGS+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=$(PROC)"; fi)
+ifeq ($(findstring -march,$(_ASTCFLAGS)),)
+  ifneq ($(PROC),ultrasparc)
+    _ASTCFLAGS+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=$(PROC)"; fi)
+  endif
 endif
 
 ifeq ($(PROC),ppc)