Browse Source

powerpc: Add -mno-altivec for ARCH=powerpc builds

Signed-off-by: Paul Mackerras <paulus@samba.org>
Paul Mackerras 20 years ago
parent
commit
d3f67fbb96
1 changed files with 3 additions and 0 deletions
  1. 3 0
      arch/powerpc/Makefile

+ 3 - 0
arch/powerpc/Makefile

@@ -93,6 +93,9 @@ else
 endif
 endif
 
+# No AltiVec instruction when building kernel
+CFLAGS += $(call cc-option,-mno-altivec)
+
 # Enable unit-at-a-time mode when possible. It shrinks the
 # kernel considerably.
 CFLAGS += $(call cc-option,-funit-at-a-time)