From patchwork Wed Feb 2 13:57:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 81452 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id F31AEB70E9 for ; Thu, 3 Feb 2011 00:57:13 +1100 (EST) Received: (qmail 21406 invoked by alias); 2 Feb 2011 13:57:11 -0000 Received: (qmail 21387 invoked by uid 22791); 2 Feb 2011 13:57:10 -0000 X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL, BAYES_50, TW_GC, TW_JG, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 Feb 2011 13:57:06 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 243659EC; Wed, 2 Feb 2011 14:57:04 +0100 (CET) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id PMqwkXGOxO9N; Wed, 2 Feb 2011 14:57:02 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (manam.CeBiTec.Uni-Bielefeld.DE [129.70.161.120]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id 817CB9EB; Wed, 2 Feb 2011 14:57:02 +0100 (CET) Received: (from ro@localhost) by manam.CeBiTec.Uni-Bielefeld.DE (8.14.4+Sun/8.14.4/Submit) id p12Dv1MZ014578; Wed, 2 Feb 2011 14:57:01 +0100 (MET) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: java-patches@gcc.gnu.org Subject: [libjava, build] Don't link libgcj with libdl on IRIX Date: Wed, 02 Feb 2011 14:57:01 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (usg-unix-v) MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Along the same lines as [boehm-gc, build] Don't link libgcjgc with libdl on IRIX http://gcc.gnu.org/ml/gcc-patches/2011-02/msg00111.html it isn't necessary to jump through hoops to avoid missing the 64-bit libdl which no special library is necessary at all, thus the following patch. Bootstrapped without regressions on mips-sgi-irix6.5, installed. Rainer 2011-01-28 Rainer Orth * configure.ac: Don't use libdl on mips-sgi-irix6*. * configure: Regenerate. diff -r 93b23f40f874 libjava/configure.ac --- a/libjava/configure.ac Fri Jan 28 13:05:59 2011 +0100 +++ b/libjava/configure.ac Fri Jan 28 13:08:24 2011 +0100 @@ -1460,15 +1460,14 @@ if test "$GC" = boehm; then case "${host}" in mips-sgi-irix6*) - # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib) - # libgcj.spec is used, so override here - SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}" - ;; + # While IRIX 6 has libdl for the O32 and N32 ABIs, the N64 one is + # missing. It's unnecessary anyway since dlopen lives in libc. + ;; *-*-darwin*) - ;; + ;; *) AC_CHECK_LIB(dl, main, SYSTEMSPEC="$SYSTEMSPEC -ldl") - ;; + ;; esac fi fi