summaryrefslogtreecommitdiff
path: root/package/openjdk8
diff options
context:
space:
mode:
Diffstat (limited to 'package/openjdk8')
-rw-r--r--package/openjdk8/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/openjdk8/Makefile b/package/openjdk8/Makefile
index 5b482fee1..66b82d7a4 100644
--- a/package/openjdk8/Makefile
+++ b/package/openjdk8/Makefile
@@ -35,10 +35,11 @@ ifeq ($(ADK_TARGET_CPU_ARCH),x86_64)
JDKARCH:= amd64
endif
+TARGET_LDFLAGS:= -lm
# uclibc-ng with iconv-tiny/libiconv needs -liconv
ifeq ($(ADK_TARGET_LIBC_ICONV),)
ifeq ($(ADK_TARGET_LIB_UCLIBC_NG),y)
-TARGET_LDFLAGS:= -liconv -lm
+TARGET_LDFLAGS+= -liconv
endif
endif