Changeset View
Changeset View
Standalone View
Standalone View
lib/msun/Makefile
Show All 39 Lines | |||||
# When using clang with x86_64 CPUs that support AVX, some floating point | # When using clang with x86_64 CPUs that support AVX, some floating point | ||||
# transformations may raise exceptions that would not have been raised by the | # transformations may raise exceptions that would not have been raised by the | ||||
# original code. To avoid this, use the -fp-exception-behavior=maytrap flag, | # original code. To avoid this, use the -fp-exception-behavior=maytrap flag, | ||||
# introduced in clang 10.0.0. | # introduced in clang 10.0.0. | ||||
# See also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254911 | # See also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254911 | ||||
CFLAGS+= -ffp-exception-behavior=maytrap | CFLAGS+= -ffp-exception-behavior=maytrap | ||||
.endif | .endif | ||||
# Tell the compiler we don't set errno in any of the math functions. This | |||||
# stops gcc from trying to generate a function call to set errno when using | |||||
# a builtin in the implementation | |||||
CFLAGS+= -fno-math-errno | |||||
.PATH: ${.CURDIR}/bsdsrc | .PATH: ${.CURDIR}/bsdsrc | ||||
.PATH: ${.CURDIR}/src | .PATH: ${.CURDIR}/src | ||||
.PATH: ${.CURDIR}/man | .PATH: ${.CURDIR}/man | ||||
LIB= m | LIB= m | ||||
SHLIBDIR?= /lib | SHLIBDIR?= /lib | ||||
SHLIB_MAJOR= 5 | SHLIB_MAJOR= 5 | ||||
WARNS?= 1 | WARNS?= 1 | ||||
▲ Show 20 Lines • Show All 218 Lines • Show Last 20 Lines |