mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-13 23:00:22 +00:00
Avoid passing gcc-specific options to clang
This commit is contained in:
parent
452fe68a53
commit
e04e10b431
@ -10,6 +10,7 @@ ifeq (yes,$(build-shared))
|
|||||||
pic-ccflag = -fpic
|
pic-ccflag = -fpic
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(with-clang),no)
|
||||||
# These flags prevent FPU or Altivec registers from being used,
|
# These flags prevent FPU or Altivec registers from being used,
|
||||||
# for code called in contexts that is not allowed to touch those registers.
|
# for code called in contexts that is not allowed to touch those registers.
|
||||||
# Stupid GCC requires us to pass all these ridiculous switches. We need to
|
# Stupid GCC requires us to pass all these ridiculous switches. We need to
|
||||||
@ -40,10 +41,14 @@ ifeq ($(subdir),elf)
|
|||||||
+cflags += -finline-limit=2000
|
+cflags += -finline-limit=2000
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
endif # clang
|
||||||
|
|
||||||
ifeq ($(subdir),gmon)
|
ifeq ($(subdir),gmon)
|
||||||
# The assembly functions assume that fp arg regs are not trashed.
|
# The assembly functions assume that fp arg regs are not trashed.
|
||||||
# Compiling with -msoft-float ensures that fp regs are not used
|
# Compiling with -msoft-float ensures that fp regs are not used
|
||||||
# for moving memory around.
|
# for moving memory around.
|
||||||
|
ifeq ($(with-clang),no)
|
||||||
CFLAGS-mcount.c += $(no-special-regs)
|
CFLAGS-mcount.c += $(no-special-regs)
|
||||||
|
endif # clang
|
||||||
sysdep_routines += ppc-mcount
|
sysdep_routines += ppc-mcount
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user