1.1 --- a/make/linux/makefiles/ppc64.make Tue May 14 15:04:47 2019 +0100 1.2 +++ b/make/linux/makefiles/ppc64.make Tue Apr 30 17:42:33 2019 +0200 1.3 @@ -49,3 +49,14 @@ 1.4 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 1.5 CFLAGS += -mcpu=power7 -mtune=power8 -minsert-sched-nops=regroup_exact -mno-multiple -mno-string 1.6 endif 1.7 + 1.8 +# If FDLIBM_CFLAGS is non-empty it holds CFLAGS needed to be passed to 1.9 +# the compiler so as to be able to produce optimized objects 1.10 +# without losing precision. 1.11 +ifneq ($(FDLIBM_CFLAGS),) 1.12 + OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/SPEED) $(FDLIBM_CFLAGS) 1.13 + OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/SPEED) $(FDLIBM_CFLAGS) 1.14 +else 1.15 + OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT) 1.16 + OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/NOOPT) 1.17 +endif