aboutsummaryrefslogtreecommitdiff
path: root/libjava/configure
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/configure')
-rwxr-xr-xlibjava/configure6
1 files changed, 6 insertions, 0 deletions
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; }