diff options
| author | Anton Blanchard <anton@samba.org> | 2015-05-25 18:53:26 -0400 |
|---|---|---|
| committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-06-11 03:33:05 -0400 |
| commit | 1fb3f5a7ca599f322e6bf21272ad215301159aa0 (patch) | |
| tree | 36f1ed9eafd40ff14abcd9645b2d3a328af32bd5 /arch/powerpc/lib/Makefile | |
| parent | b91c1e3e7a6f22a6b898e345b745b6a43273c973 (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 'arch/powerpc/lib/Makefile')
| -rw-r--r-- | arch/powerpc/lib/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/lib/Makefile b/arch/powerpc/lib/Makefile index 7902802a19a5..a47e14277fd8 100644 --- a/arch/powerpc/lib/Makefile +++ b/arch/powerpc/lib/Makefile | |||
| @@ -33,6 +33,6 @@ obj-$(CONFIG_PPC_LIB_RHEAP) += rheap.o | |||
| 33 | obj-$(CONFIG_FTR_FIXUP_SELFTEST) += feature-fixups-test.o | 33 | obj-$(CONFIG_FTR_FIXUP_SELFTEST) += feature-fixups-test.o |
| 34 | 34 | ||
| 35 | obj-$(CONFIG_ALTIVEC) += xor_vmx.o | 35 | obj-$(CONFIG_ALTIVEC) += xor_vmx.o |
| 36 | CFLAGS_xor_vmx.o += -maltivec -mabi=altivec | 36 | CFLAGS_xor_vmx.o += -maltivec $(call cc-option,-mabi=altivec) |
| 37 | 37 | ||
| 38 | obj-$(CONFIG_PPC64) += $(obj64-y) | 38 | obj-$(CONFIG_PPC64) += $(obj64-y) |
