--- a/common/autoconf/spec.gmk.in Wed Oct 07 11:58:03 2015 +0200 +++ b/common/autoconf/spec.gmk.in Wed Oct 07 15:26:48 2015 +0200 @@ -96,7 +96,7 @@ REQUIRED_OS_VERSION:=@REQUIRED_OS_VERSION@ @SET_OPENJDK@ -LIBM:=-lm +LIBM:=@LIBM@ LIBDL:=@LIBDL@ # colon or semicolon