]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Avoid passing gcc-specific options to clang
authorStan Shebs <stanshebs@google.com>
Wed, 26 Sep 2018 21:31:55 +0000 (14:31 -0700)
committerFangrui Song <i@maskray.me>
Sat, 28 Aug 2021 00:23:14 +0000 (17:23 -0700)
sysdeps/powerpc/powerpc64/Makefile

index 9d15db0328b8db98570f8fa923682be96a0d8af8..525c6a4c5f20cbf4fb1af81eab00f3ac0a251b5a 100644 (file)
@@ -10,6 +10,7 @@ ifeq (yes,$(build-shared))
 pic-ccflag = -fpic
 endif
 
+ifeq ($(with-clang),no)
 # These flags prevent FPU or Altivec registers from being used,
 # 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
@@ -40,10 +41,14 @@ ifeq ($(subdir),elf)
 +cflags += -finline-limit=2000
 endif
 
+endif # clang
+
 ifeq ($(subdir),gmon)
 # The assembly functions assume that fp arg regs are not trashed.
 # Compiling with -msoft-float ensures that fp regs are not used
 # for moving memory around.
+ifeq ($(with-clang),no)
 CFLAGS-mcount.c += $(no-special-regs)
+endif # clang
 sysdep_routines += ppc-mcount
 endif