From patchwork Wed Sep 4 10:00:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Klose X-Patchwork-Id: 272559 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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "www.sourceware.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 611362C00BF for ; Wed, 4 Sep 2013 20:01:01 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=kA/B2/BBd8NGjW5FoSk8nQmWKOA1L5KnAGjlU7OizOACgz L/5QhOxiIIv+0gMHsqLb2i7etFZiU9Dd9wrncXhLbxtV77ommV2vGX1o4oIq/9SC enw5Fx+rwJ+YUiqHGGp5n/KWWWqw0rHGceh5galNwT2eYwvOevjYla90Q9XIo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=KLfgoCJkPDRCTrtK5YDyMUpfD7M=; b=aJulSTIwdVjqCQbUz5cu QVF3rJbD2wdZS/GOouvpF53IQZNAflOU2v+xBDB+kr1QyyLht1ZDkXqVxrgzRjXO bGqnCrkzYm2nhzMJten37vTCNxJdnnpnQrT1yCZ/qetIcVT0lUvx1qY/P57hy37h yTltZLdzaughsQ8RQKSddcQ= Received: (qmail 24024 invoked by alias); 4 Sep 2013 10:00:53 -0000 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 Received: (qmail 24008 invoked by uid 89); 4 Sep 2013 10:00:53 -0000 Received: from einhorn.in-berlin.de (HELO einhorn.in-berlin.de) (192.109.42.8) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 04 Sep 2013 10:00:53 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED, AWL, BAYES_00, NO_DNS_FOR_FROM autolearn=no version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: einhorn.in-berlin.de X-Envelope-From: doko@ubuntu.com Received: from [192.168.42.222] (dslb-088-073-107-047.pools.arcor-ip.net [88.73.107.47]) (authenticated bits=0) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id r84A0lEQ030373; Wed, 4 Sep 2013 12:00:48 +0200 Message-ID: <522704CF.2050303@ubuntu.com> Date: Wed, 04 Sep 2013 12:00:47 +0200 From: Matthias Klose User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: GCC Patches , GCJ-patches Subject: [patch] boehm-gc: link libgcjgc with -ldl The boehm-gc tests currently fail to build with a linker with --no-copy-dt-needed-entries as the default. dlopen is referenced in the libgcjgc library itself, so link it with -ldl. The macro name EXTRA_TEST_LIBS is a bit unfortunate now, but it is the right way to find the library name, as done for the tests itself. Ok for the trunk and the 4.8 branch? Matthias * Makefile.am (libgcjgc_la_LIBADD): Add EXTRA_TEST_LIBS. * Makefile.in: Regenerate. --- a/src/boehm-gc/Makefile.am +++ a/src/boehm-gc/Makefile.am @@ -35,7 +35,7 @@ # Include THREADLIBS here to ensure that the correct versions of # linuxthread semaphore functions get linked: -libgcjgc_la_LIBADD = $(addobjs) $(THREADLIBS) +libgcjgc_la_LIBADD = $(addobjs) $(THREADLIBS) $(EXTRA_TEST_LIBS) libgcjgc_la_DEPENDENCIES = $(addobjs) libgcjgc_la_LDFLAGS = $(extra_ldflags_libgc) -version-info 1:2:0 -rpath $(toolexeclibdir) libgcjgc_la_LINK = $(LINK) $(libgcjgc_la_LDFLAGS)