Skip to content

Commit 238abec

Browse files
antonblanchardmpe
authored andcommitted
powerpc: Don't use gcc specific options on clang
We have code to choose between several options, eg. -mabi=elfv2 vs -mcall-aixdesc, and -mcmodel=medium vs -mminimal-toc. But these are all GCC specific, so use cc-option on all of them. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 92d6cf2 commit 238abec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/powerpc/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@ endif
118118

119119
CFLAGS-$(CONFIG_PPC64) := $(call cc-option,-mtraceback=no)
120120
ifeq ($(CONFIG_CPU_LITTLE_ENDIAN),y)
121-
CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv2,-mcall-aixdesc)
121+
CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv2,$(call cc-option,-mcall-aixdesc))
122122
AFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv2)
123123
else
124-
CFLAGS-$(CONFIG_PPC64) += -mcall-aixdesc
124+
CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mcall-aixdesc)
125125
endif
126-
CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mcmodel=medium,-mminimal-toc)
126+
CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mcmodel=medium,$(call cc-option,-mminimal-toc))
127127
CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mno-pointers-to-nested-functions)
128128
CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 $(MULTIPLEWORD)
129129

0 commit comments

Comments
 (0)