aboutsummaryrefslogtreecommitdiffstats
path: root/lib/raid6
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2015-05-25 18:53:26 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2015-06-11 03:33:05 -0400
commit1fb3f5a7ca599f322e6bf21272ad215301159aa0 (patch)
tree36f1ed9eafd40ff14abcd9645b2d3a328af32bd5 /lib/raid6
parentb91c1e3e7a6f22a6b898e345b745b6a43273c973 (diff)
powerpc: Only use -mabi=altivec if toolchain supports it
The -mabi=altivec option is not recognised on LLVM, so use call cc-option to check for support. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'lib/raid6')
-rw-r--r--lib/raid6/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/raid6/Makefile b/lib/raid6/Makefile
index c7dab0645554..3b10a48fa040 100644
--- a/lib/raid6/Makefile
+++ b/lib/raid6/Makefile
@@ -15,7 +15,7 @@ quiet_cmd_unroll = UNROLL $@
15 < $< > $@ || ( rm -f $@ && exit 1 ) 15 < $< > $@ || ( rm -f $@ && exit 1 )
16 16
17ifeq ($(CONFIG_ALTIVEC),y) 17ifeq ($(CONFIG_ALTIVEC),y)
18altivec_flags := -maltivec -mabi=altivec 18altivec_flags := -maltivec $(call cc-option,-mabi=altivec)
19endif 19endif
20 20
21# The GCC option -ffreestanding is required in order to compile code containing 21# The GCC option -ffreestanding is required in order to compile code containing