Android.mk revision 2e16d2cf1e477af1db92efde389a5ce0a8e6fbb3
1ifneq ($(TARGET_USE_PRIVATE_LIBM),true) 2LOCAL_PATH:= $(call my-dir) 3 4bionic_coverage := false 5 6ifneq (,$(filter $(TARGET_ARCH),x86 x86_64)) 7# Clang has wrong long double sizes for x86. 8libm_clang := false 9endif 10 11# ----------------------------------------------------------------------------- 12# libm.a 13# ----------------------------------------------------------------------------- 14include $(CLEAR_VARS) 15 16LOCAL_MODULE := libm 17 18LOCAL_SRC_FILES := \ 19 upstream-freebsd/lib/msun/bsdsrc/b_exp.c \ 20 upstream-freebsd/lib/msun/bsdsrc/b_log.c \ 21 upstream-freebsd/lib/msun/bsdsrc/b_tgamma.c \ 22 upstream-freebsd/lib/msun/src/catrig.c \ 23 upstream-freebsd/lib/msun/src/catrigf.c \ 24 upstream-freebsd/lib/msun/src/e_acos.c \ 25 upstream-freebsd/lib/msun/src/e_acosf.c \ 26 upstream-freebsd/lib/msun/src/e_acosh.c \ 27 upstream-freebsd/lib/msun/src/e_acoshf.c \ 28 upstream-freebsd/lib/msun/src/e_asin.c \ 29 upstream-freebsd/lib/msun/src/e_asinf.c \ 30 upstream-freebsd/lib/msun/src/e_atan2.c \ 31 upstream-freebsd/lib/msun/src/e_atan2f.c \ 32 upstream-freebsd/lib/msun/src/e_atanh.c \ 33 upstream-freebsd/lib/msun/src/e_atanhf.c \ 34 upstream-freebsd/lib/msun/src/e_cosh.c \ 35 upstream-freebsd/lib/msun/src/e_coshf.c \ 36 upstream-freebsd/lib/msun/src/e_exp.c \ 37 upstream-freebsd/lib/msun/src/e_expf.c \ 38 upstream-freebsd/lib/msun/src/e_fmod.c \ 39 upstream-freebsd/lib/msun/src/e_fmodf.c \ 40 upstream-freebsd/lib/msun/src/e_gamma.c \ 41 upstream-freebsd/lib/msun/src/e_gammaf.c \ 42 upstream-freebsd/lib/msun/src/e_gammaf_r.c \ 43 upstream-freebsd/lib/msun/src/e_gamma_r.c \ 44 upstream-freebsd/lib/msun/src/e_hypot.c \ 45 upstream-freebsd/lib/msun/src/e_hypotf.c \ 46 upstream-freebsd/lib/msun/src/e_j0.c \ 47 upstream-freebsd/lib/msun/src/e_j0f.c \ 48 upstream-freebsd/lib/msun/src/e_j1.c \ 49 upstream-freebsd/lib/msun/src/e_j1f.c \ 50 upstream-freebsd/lib/msun/src/e_jn.c \ 51 upstream-freebsd/lib/msun/src/e_jnf.c \ 52 upstream-freebsd/lib/msun/src/e_lgamma.c \ 53 upstream-freebsd/lib/msun/src/e_lgammaf.c \ 54 upstream-freebsd/lib/msun/src/e_lgammaf_r.c \ 55 upstream-freebsd/lib/msun/src/e_lgamma_r.c \ 56 upstream-freebsd/lib/msun/src/e_log10.c \ 57 upstream-freebsd/lib/msun/src/e_log10f.c \ 58 upstream-freebsd/lib/msun/src/e_log2.c \ 59 upstream-freebsd/lib/msun/src/e_log2f.c \ 60 upstream-freebsd/lib/msun/src/e_log.c \ 61 upstream-freebsd/lib/msun/src/e_logf.c \ 62 upstream-freebsd/lib/msun/src/e_pow.c \ 63 upstream-freebsd/lib/msun/src/e_powf.c \ 64 upstream-freebsd/lib/msun/src/e_remainder.c \ 65 upstream-freebsd/lib/msun/src/e_remainderf.c \ 66 upstream-freebsd/lib/msun/src/e_rem_pio2.c \ 67 upstream-freebsd/lib/msun/src/e_rem_pio2f.c \ 68 upstream-freebsd/lib/msun/src/e_scalb.c \ 69 upstream-freebsd/lib/msun/src/e_scalbf.c \ 70 upstream-freebsd/lib/msun/src/e_sinh.c \ 71 upstream-freebsd/lib/msun/src/e_sinhf.c \ 72 upstream-freebsd/lib/msun/src/imprecise.c \ 73 upstream-freebsd/lib/msun/src/k_cos.c \ 74 upstream-freebsd/lib/msun/src/k_cosf.c \ 75 upstream-freebsd/lib/msun/src/k_exp.c \ 76 upstream-freebsd/lib/msun/src/k_expf.c \ 77 upstream-freebsd/lib/msun/src/k_rem_pio2.c \ 78 upstream-freebsd/lib/msun/src/k_sin.c \ 79 upstream-freebsd/lib/msun/src/k_sinf.c \ 80 upstream-freebsd/lib/msun/src/k_tan.c \ 81 upstream-freebsd/lib/msun/src/k_tanf.c \ 82 upstream-freebsd/lib/msun/src/s_asinh.c \ 83 upstream-freebsd/lib/msun/src/s_asinhf.c \ 84 upstream-freebsd/lib/msun/src/s_atan.c \ 85 upstream-freebsd/lib/msun/src/s_atanf.c \ 86 upstream-freebsd/lib/msun/src/s_carg.c \ 87 upstream-freebsd/lib/msun/src/s_cargf.c \ 88 upstream-freebsd/lib/msun/src/s_cargl.c \ 89 upstream-freebsd/lib/msun/src/s_cbrt.c \ 90 upstream-freebsd/lib/msun/src/s_cbrtf.c \ 91 upstream-freebsd/lib/msun/src/s_ccosh.c \ 92 upstream-freebsd/lib/msun/src/s_ccoshf.c \ 93 upstream-freebsd/lib/msun/src/s_cexp.c \ 94 upstream-freebsd/lib/msun/src/s_cexpf.c \ 95 upstream-freebsd/lib/msun/src/s_cimag.c \ 96 upstream-freebsd/lib/msun/src/s_cimagf.c \ 97 upstream-freebsd/lib/msun/src/s_cimagl.c \ 98 upstream-freebsd/lib/msun/src/s_conj.c \ 99 upstream-freebsd/lib/msun/src/s_conjf.c \ 100 upstream-freebsd/lib/msun/src/s_conjl.c \ 101 upstream-freebsd/lib/msun/src/s_copysign.c \ 102 upstream-freebsd/lib/msun/src/s_copysignf.c \ 103 upstream-freebsd/lib/msun/src/s_cos.c \ 104 upstream-freebsd/lib/msun/src/s_cosf.c \ 105 upstream-freebsd/lib/msun/src/s_cproj.c \ 106 upstream-freebsd/lib/msun/src/s_cprojf.c \ 107 upstream-freebsd/lib/msun/src/s_cprojl.c \ 108 upstream-freebsd/lib/msun/src/s_creal.c \ 109 upstream-freebsd/lib/msun/src/s_crealf.c \ 110 upstream-freebsd/lib/msun/src/s_creall.c \ 111 upstream-freebsd/lib/msun/src/s_csinh.c \ 112 upstream-freebsd/lib/msun/src/s_csinhf.c \ 113 upstream-freebsd/lib/msun/src/s_csqrt.c \ 114 upstream-freebsd/lib/msun/src/s_csqrtf.c \ 115 upstream-freebsd/lib/msun/src/s_csqrtl.c \ 116 upstream-freebsd/lib/msun/src/s_ctanh.c \ 117 upstream-freebsd/lib/msun/src/s_ctanhf.c \ 118 upstream-freebsd/lib/msun/src/s_erf.c \ 119 upstream-freebsd/lib/msun/src/s_erff.c \ 120 upstream-freebsd/lib/msun/src/s_exp2.c \ 121 upstream-freebsd/lib/msun/src/s_exp2f.c \ 122 upstream-freebsd/lib/msun/src/s_expm1.c \ 123 upstream-freebsd/lib/msun/src/s_expm1f.c \ 124 upstream-freebsd/lib/msun/src/s_fabs.c \ 125 upstream-freebsd/lib/msun/src/s_fabsf.c \ 126 upstream-freebsd/lib/msun/src/s_fdim.c \ 127 upstream-freebsd/lib/msun/src/s_finite.c \ 128 upstream-freebsd/lib/msun/src/s_finitef.c \ 129 upstream-freebsd/lib/msun/src/s_fmax.c \ 130 upstream-freebsd/lib/msun/src/s_fmaxf.c \ 131 upstream-freebsd/lib/msun/src/s_fmin.c \ 132 upstream-freebsd/lib/msun/src/s_fminf.c \ 133 upstream-freebsd/lib/msun/src/s_frexp.c \ 134 upstream-freebsd/lib/msun/src/s_frexpf.c \ 135 upstream-freebsd/lib/msun/src/s_ilogb.c \ 136 upstream-freebsd/lib/msun/src/s_ilogbf.c \ 137 upstream-freebsd/lib/msun/src/s_llround.c \ 138 upstream-freebsd/lib/msun/src/s_llroundf.c \ 139 upstream-freebsd/lib/msun/src/s_log1p.c \ 140 upstream-freebsd/lib/msun/src/s_log1pf.c \ 141 upstream-freebsd/lib/msun/src/s_logb.c \ 142 upstream-freebsd/lib/msun/src/s_logbf.c \ 143 upstream-freebsd/lib/msun/src/s_lround.c \ 144 upstream-freebsd/lib/msun/src/s_lroundf.c \ 145 upstream-freebsd/lib/msun/src/s_modf.c \ 146 upstream-freebsd/lib/msun/src/s_modff.c \ 147 upstream-freebsd/lib/msun/src/s_nan.c \ 148 upstream-freebsd/lib/msun/src/s_nearbyint.c \ 149 upstream-freebsd/lib/msun/src/s_nextafter.c \ 150 upstream-freebsd/lib/msun/src/s_nextafterf.c \ 151 upstream-freebsd/lib/msun/src/s_remquo.c \ 152 upstream-freebsd/lib/msun/src/s_remquof.c \ 153 upstream-freebsd/lib/msun/src/s_round.c \ 154 upstream-freebsd/lib/msun/src/s_roundf.c \ 155 upstream-freebsd/lib/msun/src/s_scalbln.c \ 156 upstream-freebsd/lib/msun/src/s_scalbn.c \ 157 upstream-freebsd/lib/msun/src/s_scalbnf.c \ 158 upstream-freebsd/lib/msun/src/s_signgam.c \ 159 upstream-freebsd/lib/msun/src/s_significand.c \ 160 upstream-freebsd/lib/msun/src/s_significandf.c \ 161 upstream-freebsd/lib/msun/src/s_sin.c \ 162 upstream-freebsd/lib/msun/src/s_sinf.c \ 163 upstream-freebsd/lib/msun/src/s_tan.c \ 164 upstream-freebsd/lib/msun/src/s_tanf.c \ 165 upstream-freebsd/lib/msun/src/s_tanh.c \ 166 upstream-freebsd/lib/msun/src/s_tanhf.c \ 167 upstream-freebsd/lib/msun/src/s_tgammaf.c \ 168 upstream-freebsd/lib/msun/src/w_cabs.c \ 169 upstream-freebsd/lib/msun/src/w_cabsf.c \ 170 upstream-freebsd/lib/msun/src/w_cabsl.c \ 171 upstream-freebsd/lib/msun/src/w_drem.c \ 172 upstream-freebsd/lib/msun/src/w_dremf.c \ 173 174LOCAL_SRC_FILES_32 += \ 175 fake_long_double.c \ 176 177LOCAL_SRC_FILES_64 := \ 178 upstream-freebsd/lib/msun/src/e_acosl.c \ 179 upstream-freebsd/lib/msun/src/e_acoshl.c \ 180 upstream-freebsd/lib/msun/src/e_asinl.c \ 181 upstream-freebsd/lib/msun/src/e_atan2l.c \ 182 upstream-freebsd/lib/msun/src/e_atanhl.c \ 183 upstream-freebsd/lib/msun/src/e_fmodl.c \ 184 upstream-freebsd/lib/msun/src/e_hypotl.c \ 185 upstream-freebsd/lib/msun/src/e_lgammal.c \ 186 upstream-freebsd/lib/msun/src/e_remainderl.c \ 187 upstream-freebsd/lib/msun/src/e_sqrtl.c \ 188 upstream-freebsd/lib/msun/src/s_asinhl.c \ 189 upstream-freebsd/lib/msun/src/s_atanl.c \ 190 upstream-freebsd/lib/msun/src/s_cbrtl.c \ 191 upstream-freebsd/lib/msun/src/s_ceill.c \ 192 upstream-freebsd/lib/msun/src/s_copysignl.c \ 193 upstream-freebsd/lib/msun/src/e_coshl.c \ 194 upstream-freebsd/lib/msun/src/s_cosl.c \ 195 upstream-freebsd/lib/msun/src/s_fabsl.c \ 196 upstream-freebsd/lib/msun/src/s_floorl.c \ 197 upstream-freebsd/lib/msun/src/s_fmal.c \ 198 upstream-freebsd/lib/msun/src/s_fmaxl.c \ 199 upstream-freebsd/lib/msun/src/s_fminl.c \ 200 upstream-freebsd/lib/msun/src/s_modfl.c \ 201 upstream-freebsd/lib/msun/src/s_frexpl.c \ 202 upstream-freebsd/lib/msun/src/s_ilogbl.c \ 203 upstream-freebsd/lib/msun/src/s_llrintl.c \ 204 upstream-freebsd/lib/msun/src/s_llroundl.c \ 205 upstream-freebsd/lib/msun/src/s_logbl.c \ 206 upstream-freebsd/lib/msun/src/s_lrintl.c \ 207 upstream-freebsd/lib/msun/src/s_lroundl.c \ 208 upstream-freebsd/lib/msun/src/s_nextafterl.c \ 209 upstream-freebsd/lib/msun/src/s_nexttoward.c \ 210 upstream-freebsd/lib/msun/src/s_nexttowardf.c \ 211 upstream-freebsd/lib/msun/src/s_remquol.c \ 212 upstream-freebsd/lib/msun/src/s_rintl.c \ 213 upstream-freebsd/lib/msun/src/s_roundl.c \ 214 upstream-freebsd/lib/msun/src/s_scalbnl.c \ 215 upstream-freebsd/lib/msun/src/e_sinhl.c \ 216 upstream-freebsd/lib/msun/src/s_sinl.c \ 217 upstream-freebsd/lib/msun/src/s_tanhl.c \ 218 upstream-freebsd/lib/msun/src/s_tanl.c \ 219 upstream-freebsd/lib/msun/src/s_truncl.c \ 220 221LOCAL_SRC_FILES_64 += \ 222 upstream-freebsd/lib/msun/ld128/invtrig.c \ 223 upstream-freebsd/lib/msun/ld128/e_lgammal_r.c \ 224 upstream-freebsd/lib/msun/ld128/k_cosl.c \ 225 upstream-freebsd/lib/msun/ld128/k_sinl.c \ 226 upstream-freebsd/lib/msun/ld128/k_tanl.c \ 227 upstream-freebsd/lib/msun/ld128/s_erfl.c \ 228 upstream-freebsd/lib/msun/ld128/s_exp2l.c \ 229 upstream-freebsd/lib/msun/ld128/s_expl.c \ 230 upstream-freebsd/lib/msun/ld128/s_logl.c \ 231 upstream-freebsd/lib/msun/ld128/s_nanl.c \ 232 233# TODO: this comes from from upstream's libc, not libm, but it's an 234# implementation detail that should have hidden visibility, so it needs 235# to be in whatever library the math code is in. 236LOCAL_SRC_FILES += \ 237 digittoint.c \ 238 239# Functionality not in the BSDs. 240LOCAL_SRC_FILES += \ 241 significandl.c \ 242 sincos.c \ 243 244# Modified versions of BSD code. 245LOCAL_SRC_FILES += \ 246 signbit.c \ 247 248# Arch specific optimizations. 249 250# ----------------------------------------------------------------------------- 251# arm 252# ----------------------------------------------------------------------------- 253LOCAL_SRC_FILES_arm += \ 254 arm/fenv.c \ 255 upstream-freebsd/lib/msun/src/s_ceil.c \ 256 upstream-freebsd/lib/msun/src/s_ceilf.c \ 257 upstream-freebsd/lib/msun/src/s_fma.c \ 258 upstream-freebsd/lib/msun/src/s_fmaf.c \ 259 upstream-freebsd/lib/msun/src/s_floorf.c \ 260 upstream-freebsd/lib/msun/src/s_llrint.c \ 261 upstream-freebsd/lib/msun/src/s_llrintf.c \ 262 upstream-freebsd/lib/msun/src/s_lrint.c \ 263 upstream-freebsd/lib/msun/src/s_lrintf.c \ 264 upstream-freebsd/lib/msun/src/s_rint.c \ 265 upstream-freebsd/lib/msun/src/s_rintf.c \ 266 upstream-freebsd/lib/msun/src/s_trunc.c \ 267 upstream-freebsd/lib/msun/src/s_truncf.c \ 268 269# s_floor.S requires neon instructions. 270ifdef TARGET_2ND_ARCH 271arch_variant := $(TARGET_2ND_ARCH_VARIANT) 272else 273arch_variant := $(TARGET_ARCH_VARIANT) 274endif 275 276# Use the C version on armv7-a since it doesn't support neon instructions. 277ifeq ($(arch_variant),armv7-a) 278LOCAL_SRC_FILES_arm += \ 279 upstream-freebsd/lib/msun/src/e_sqrt.c \ 280 upstream-freebsd/lib/msun/src/e_sqrtf.c \ 281 upstream-freebsd/lib/msun/src/s_floor.c \ 282 283else 284LOCAL_SRC_FILES_arm += \ 285 arm/e_sqrt.S \ 286 arm/e_sqrtf.S \ 287 arm/s_floor.S \ 288 289endif 290 291# ----------------------------------------------------------------------------- 292# arm64 293# ----------------------------------------------------------------------------- 294LOCAL_SRC_FILES_arm64 += \ 295 arm64/ceil.S \ 296 arm64/fenv.c \ 297 arm64/fma.S \ 298 arm64/floor.S \ 299 arm64/lrint.S \ 300 arm64/rint.S \ 301 arm64/sqrt.S \ 302 arm64/trunc.S \ 303 304# ----------------------------------------------------------------------------- 305# mips 306# ----------------------------------------------------------------------------- 307libm_mips_arch_files := \ 308 mips/fenv.c \ 309 upstream-freebsd/lib/msun/src/e_sqrt.c \ 310 upstream-freebsd/lib/msun/src/e_sqrtf.c \ 311 upstream-freebsd/lib/msun/src/s_ceil.c \ 312 upstream-freebsd/lib/msun/src/s_ceilf.c \ 313 upstream-freebsd/lib/msun/src/s_fma.c \ 314 upstream-freebsd/lib/msun/src/s_fmaf.c \ 315 upstream-freebsd/lib/msun/src/s_floor.c \ 316 upstream-freebsd/lib/msun/src/s_floorf.c \ 317 upstream-freebsd/lib/msun/src/s_llrint.c \ 318 upstream-freebsd/lib/msun/src/s_llrintf.c \ 319 upstream-freebsd/lib/msun/src/s_lrint.c \ 320 upstream-freebsd/lib/msun/src/s_lrintf.c \ 321 upstream-freebsd/lib/msun/src/s_rint.c \ 322 upstream-freebsd/lib/msun/src/s_rintf.c \ 323 upstream-freebsd/lib/msun/src/s_trunc.c \ 324 upstream-freebsd/lib/msun/src/s_truncf.c \ 325 326LOCAL_SRC_FILES_mips += $(libm_mips_arch_files) 327LOCAL_SRC_FILES_mips64 += $(libm_mips_arch_files) 328 329# ----------------------------------------------------------------------------- 330# x86 331# ----------------------------------------------------------------------------- 332LOCAL_SRC_FILES_x86 += \ 333 i387/fenv.c \ 334 upstream-freebsd/lib/msun/src/s_fma.c \ 335 upstream-freebsd/lib/msun/src/s_fmaf.c \ 336 upstream-freebsd/lib/msun/src/s_llrint.c \ 337 upstream-freebsd/lib/msun/src/s_llrintf.c \ 338 upstream-freebsd/lib/msun/src/s_lrint.c \ 339 upstream-freebsd/lib/msun/src/s_lrintf.c \ 340 upstream-freebsd/lib/msun/src/s_rint.c \ 341 upstream-freebsd/lib/msun/src/s_rintf.c \ 342 x86/sqrt.S \ 343 x86/sqrtf.S \ 344 345ifeq ($(ARCH_X86_HAVE_SSE4_1),true) 346LOCAL_SRC_FILES_x86 += \ 347 x86/ceil.S \ 348 x86/ceilf.S \ 349 x86/floor.S \ 350 x86/floorf.S \ 351 x86/trunc.S \ 352 x86/truncf.S \ 353 354else 355LOCAL_SRC_FILES_x86 += \ 356 upstream-freebsd/lib/msun/src/s_ceil.c \ 357 upstream-freebsd/lib/msun/src/s_ceilf.c \ 358 upstream-freebsd/lib/msun/src/s_floor.c \ 359 upstream-freebsd/lib/msun/src/s_floorf.c \ 360 upstream-freebsd/lib/msun/src/s_trunc.c \ 361 upstream-freebsd/lib/msun/src/s_truncf.c \ 362 363endif 364 365# ----------------------------------------------------------------------------- 366# x86_64 367# ----------------------------------------------------------------------------- 368LOCAL_SRC_FILES_x86_64 += \ 369 amd64/fenv.c \ 370 upstream-freebsd/lib/msun/src/s_fma.c \ 371 upstream-freebsd/lib/msun/src/s_fmaf.c \ 372 upstream-freebsd/lib/msun/src/s_llrint.c \ 373 upstream-freebsd/lib/msun/src/s_llrintf.c \ 374 upstream-freebsd/lib/msun/src/s_lrint.c \ 375 upstream-freebsd/lib/msun/src/s_lrintf.c \ 376 upstream-freebsd/lib/msun/src/s_rint.c \ 377 upstream-freebsd/lib/msun/src/s_rintf.c \ 378 x86_64/sqrt.S \ 379 x86_64/sqrtf.S \ 380 381ifeq ($(ARCH_X86_HAVE_SSE4_1),true) 382LOCAL_SRC_FILES_x86_64 += \ 383 x86_64/ceil.S \ 384 x86_64/ceilf.S \ 385 x86_64/floor.S \ 386 x86_64/floorf.S \ 387 x86_64/trunc.S \ 388 x86_64/truncf.S \ 389 390else 391LOCAL_SRC_FILES_x86_64 += \ 392 upstream-freebsd/lib/msun/src/s_ceil.c \ 393 upstream-freebsd/lib/msun/src/s_ceilf.c \ 394 upstream-freebsd/lib/msun/src/s_floor.c \ 395 upstream-freebsd/lib/msun/src/s_floorf.c \ 396 upstream-freebsd/lib/msun/src/s_trunc.c \ 397 upstream-freebsd/lib/msun/src/s_truncf.c \ 398 399endif 400 401LOCAL_C_INCLUDES_x86 += $(LOCAL_PATH)/i387 402 403LOCAL_C_INCLUDES += $(LOCAL_PATH)/upstream-freebsd/lib/msun/src/ 404LOCAL_C_INCLUDES_64 += $(LOCAL_PATH)/upstream-freebsd/lib/msun/ld128/ 405 406LOCAL_CLANG := $(libm_clang) 407LOCAL_ARM_MODE := arm 408LOCAL_CFLAGS := \ 409 -DFLT_EVAL_METHOD=0 \ 410 -include $(LOCAL_PATH)/freebsd-compat.h \ 411 -Wno-missing-braces \ 412 -Wno-parentheses \ 413 -Wno-sign-compare \ 414 -Wno-uninitialized \ 415 -Wno-unknown-pragmas \ 416 -fvisibility=hidden \ 417 418LOCAL_ASFLAGS := \ 419 -Ibionic/libc \ 420 421# Workaround the GCC "(long)fn -> lfn" optimization bug which will result in 422# self recursions for lrint, lrintf, and lrintl. 423# BUG: 14225968 424LOCAL_CFLAGS += \ 425 -fno-builtin-rint \ 426 -fno-builtin-rintf \ 427 -fno-builtin-rintl \ 428 429LOCAL_CONLY_FLAGS := \ 430 -std=c99 \ 431 432LOCAL_NATIVE_COVERAGE := $(bionic_coverage) 433LOCAL_ADDRESS_SANITIZER := false 434include $(BUILD_STATIC_LIBRARY) 435 436# ----------------------------------------------------------------------------- 437# libm.so 438# ----------------------------------------------------------------------------- 439include $(CLEAR_VARS) 440 441# TODO: This is to work around b/19059885. Remove after root cause is fixed 442LOCAL_LDFLAGS_arm := -Wl,--hash-style=sysv 443 444LOCAL_MODULE := libm 445LOCAL_CLANG := $(libm_clang) 446LOCAL_SYSTEM_SHARED_LIBRARIES := libc 447LOCAL_WHOLE_STATIC_LIBRARIES := libm 448 449LOCAL_NATIVE_COVERAGE := $(bionic_coverage) 450LOCAL_ADDRESS_SANITIZER := false 451 452LOCAL_CXX_STL := none 453 454# We'd really like to do this for all architectures, but since this wasn't done 455# before, these symbols must continue to be exported on LP32 for binary 456# compatibility. 457LOCAL_LDFLAGS_64 := -Wl,--exclude-libs,libgcc.a 458 459include $(BUILD_SHARED_LIBRARY) 460endif 461