]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mips: Fix linking errors for none/tests/mips[32|64]/msa_fpu
authorStefan Maksimovic <stefan.maksimovic@rt-rk.com>
Thu, 27 Feb 2020 17:06:05 +0000 (17:06 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Thu, 27 Feb 2020 17:07:13 +0000 (17:07 +0000)
Some older toolchains (e.g. Codescape GNU Tools 2016.05-03 for MIPS
MTI Linux 4.9.2) require explicit inclusion of the "math" library in
order to link to the fpclassify() function.

fpclassify() is used in this test since 3e0e34a.

none/tests/mips32/Makefile.am
none/tests/mips64/Makefile.am

index 01a7dc7a982959a2b355c2e6949b95b7fcd3e04e..70099ff4b58773a92955ee707c254d93b9815a9c 100644 (file)
@@ -109,7 +109,7 @@ if !VGCONF_HAVE_PLATFORM_SEC
 msa_arithmetic_CFLAGS = $(AM_CFLAGS) @FLAG_MSA@
 msa_comparison_CFLAGS = $(AM_CFLAGS) @FLAG_MSA@
 msa_data_transfer_CFLAGS = $(AM_CFLAGS) @FLAG_MSA@
-msa_fpu_CFLAGS = $(AM_CFLAGS) @FLAG_MSA@
+msa_fpu_CFLAGS = $(AM_CFLAGS) @FLAG_MSA@ -lm
 msa_logical_and_shift_CFLAGS = $(AM_CFLAGS) @FLAG_MSA@
 msa_shuffle_CFLAGS = $(AM_CFLAGS) @FLAG_MSA@
 endif
index 01df2ad52c20f50b5a40e5dd3d4d5d75a8020df9..f77d5882b84b628550d021b219ac843e1d3914ff 100644 (file)
@@ -142,7 +142,7 @@ fpu_arithmetic_CFLAGS = $(AM_CFLAGS) -lm
 msa_arithmetic_CFLAGS = $(AM_CFLAGS) @FLAG_MSA@
 msa_comparison_CFLAGS = $(AM_CFLAGS) @FLAG_MSA@
 msa_data_transfer_CFLAGS = $(AM_CFLAGS) @FLAG_MSA@
-msa_fpu_CFLAGS = $(AM_CFLAGS) @FLAG_MSA@
+msa_fpu_CFLAGS = $(AM_CFLAGS) @FLAG_MSA@ -lm
 msa_logical_and_shift_CFLAGS = $(AM_CFLAGS) @FLAG_MSA@
 msa_shuffle_CFLAGS = $(AM_CFLAGS) @FLAG_MSA@