make/bsd/makefiles/amd64.make

changeset 9673
7cbcb271bad7
parent 0
f90c822e73f8
     1.1 --- a/make/bsd/makefiles/amd64.make	Tue May 14 15:04:47 2019 +0100
     1.2 +++ b/make/bsd/makefiles/amd64.make	Tue Apr 30 17:42:33 2019 +0200
     1.3 @@ -22,11 +22,16 @@
     1.4  #  
     1.5  #
     1.6  
     1.7 -# The copied fdlibm routines in sharedRuntimeTrig.o must not be optimized
     1.8 -OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT)
     1.9 -# The copied fdlibm routines in sharedRuntimeTrans.o must not be optimized
    1.10 -OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/NOOPT)
    1.11 -# Must also specify if CPU is little endian
    1.12 +# If FDLIBM_CFLAGS is non-empty it holds CFLAGS needed to be passed to
    1.13 +# the compiler so as to be able to produce optimized objects
    1.14 +# without losing precision.
    1.15 +ifneq ($(FDLIBM_CFLAGS),)
    1.16 +  OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/SPEED) $(FDLIBM_CFLAGS)
    1.17 +  OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/SPEED) $(FDLIBM_CFLAGS)
    1.18 +else
    1.19 +  OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT)
    1.20 +  OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/NOOPT)
    1.21 +endif
    1.22  CFLAGS += -DVM_LITTLE_ENDIAN
    1.23  
    1.24  CFLAGS += -D_LP64=1

mercurial