From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24054 invoked by alias); 4 Sep 2013 10:00:53 -0000 Mailing-List: contact java-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-patches-owner@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 10:00:00 -0000 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 Content-Type: multipart/mixed; boundary="------------010707020905080700020800" X-IsSubscribed: yes X-SW-Source: 2013-q3/txt/msg00016.txt.bz2 This is a multi-part message in MIME format. --------------010707020905080700020800 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Content-length: 370 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 --------------010707020905080700020800 Content-Type: text/plain; charset=UTF-8; name="boehm-gc-link.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="boehm-gc-link.diff" Content-length: 576 * 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) --------------010707020905080700020800--