From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26899 invoked by alias); 21 Sep 2011 16:56:35 -0000 Received: (qmail 26881 invoked by uid 22791); 21 Sep 2011 16:56:33 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.fgznet.ch (HELO smtp.fgznet.ch) (81.92.96.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 21 Sep 2011 16:56:18 +0000 Received: from deuterium.andreas.nets (dhclient-91-190-8-131.flashcable.ch [91.190.8.131]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id p8LGuEe7023058 for ; Wed, 21 Sep 2011 18:56:15 +0200 (CEST) (envelope-from andreast-list@fgznet.ch) Message-ID: <4E7A172D.6040004@fgznet.ch> Date: Wed, 21 Sep 2011 17:00:00 -0000 From: Andreas Tobler User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: [patch] fix ldl testcases on FreeBSD Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-09/txt/msg00395.txt.bz2 Hi all, the below patch makes the test cases work on *-*-freebsd* where we link -ldl. Iow, like on openbsd, we do not add -ldl to the libs. Is this ok for trunk? Thanks, Andreas 2011-09-21 Andreas Tobler * lib/gdb.exp (gdb_compile): Set rpath for <*-*-freebsd*>. Index: testsuite/lib/gdb.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v retrieving revision 1.186 diff -u -r1.186 gdb.exp --- testsuite/lib/gdb.exp 18 Sep 2011 02:36:27 -0000 1.186 +++ testsuite/lib/gdb.exp 21 Sep 2011 16:51:49 -0000 @@ -2233,7 +2233,7 @@ || [istarget *-*-pe*] || [istarget hppa*-*-hpux*])} { # Do not need anything. - } elseif { [istarget *-*-openbsd*] } { + } elseif { [istarget *-*-freebsd*] || [istarget *-*-openbsd*] } { lappend new_options "ldflags=-Wl,-rpath,${outdir}" } elseif { [istarget arm*-*-symbianelf*] } { if { $shlib_load } {