changeset 4541:bb50a0d69415

7109092: Wrong computation results with double at armsflt Summary: need to link to custom soft-float library with required FP accuracy Reviewed-by: alanb, ohair
author dholmes
date Mon, 12 Dec 2011 23:51:46 -0500
parents 950fb1907872
children e2b718ed5831
files make/common/Defs-embedded.gmk
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/make/common/Defs-embedded.gmk	Wed Dec 14 13:29:06 2011 -0800
+++ b/make/common/Defs-embedded.gmk	Mon Dec 12 23:51:46 2011 -0500
@@ -65,5 +65,12 @@
   NIO_PLATFORM_CLASSES_ROOT_DIR = $(CLOSED_PLATFORM_SRC)/classes/
 endif
 
+# For ARM sflt we need to link to a library with improved FP accuracy
+# and it must be linked after fdlibm - this places it at the end after libc
+# -z muldefs avoids linker errors for duplicate symbols.
+ifeq ($(CROSS_COMPILE_ARCH), arm)
+  EXTRA_LIBS += $(EXT_LIBS_PATH)/sflt_glibc_jdk.a -Xlinker -z -Xlinker muldefs
+endif 
+
 endif # JAVASE_EMBEDDED