From 618d48304d0fd942c77c9172f929f8c15574dec3 Mon Sep 17 00:00:00 2001 From: Jack Howarth Date: Wed, 18 Aug 2010 08:51:57 +0000 Subject: configure.ac (THREADLIBS): Don't set on Darwin. 2010-08-18 Jack Howarth * libjava/configure.ac (THREADLIBS): Don't set on Darwin. (THREADSPEC): Likwise. * libjava/configure: Regenerate. * libjava/Makefile.am: Define LIBJAVA_LDFLAGS_LIBMATH as -lm only if USING_DARWIN_CRT undefined. (libgcj_tools_la_LIBADD): Replace '-lm' with $(LIBJAVA_LDFLAGS_LIBMATH). * libjava/Makefile.in: Regenerate. From-SVN: r163329 --- libjava/configure | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libjava/configure') diff --git a/libjava/configure b/libjava/configure index 8ccfa24..955332b 100755 --- a/libjava/configure +++ b/libjava/configure @@ -20725,6 +20725,10 @@ case "$THREADS" in THREADLIBS='-lpthread -lthread' THREADSPEC='-lpthread -lthread' ;; + *-*-darwin*) + # Don't set THREADLIBS or THREADSPEC as Darwin already + # provides pthread via libSystem. + ;; *) THREADLIBS=-lpthread THREADSPEC=-lpthread @@ -23102,6 +23106,8 @@ fi # libgcj.spec is used, so override here SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}" ;; + *-*-darwin*) + ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5 $as_echo_n "checking for main in -ldl... " >&6; } -- cgit v1.1