From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9210 invoked by alias); 16 May 2007 09:28:04 -0000 Received: (qmail 9189 invoked by uid 22791); 16 May 2007 09:28:01 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.171) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 16 May 2007 09:27:59 +0000 Received: by ug-out-1314.google.com with SMTP id 75so53655ugb for ; Wed, 16 May 2007 02:27:56 -0700 (PDT) Received: by 10.66.237.9 with SMTP id k9mr6546504ugh.1179307676620; Wed, 16 May 2007 02:27:56 -0700 (PDT) Received: by 10.78.66.14 with HTTP; Wed, 16 May 2007 02:27:56 -0700 (PDT) Message-ID: <4053daab0705160227m592db5ecp9d876bfcb2025fae@mail.gmail.com> Date: Wed, 16 May 2007 09:28:00 -0000 From: "Pedro Alves" To: "Markus Deuling" Subject: Re: [rfc] testsuite/lib/gdb.exp: Enable additional linker flags in gdb_compile_shlib Cc: "GDB Patches" , "Ulrich Weigand" In-Reply-To: <464ABCA4.9040109@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <464ABCA4.9040109@de.ibm.com> X-Google-Sender-Auth: c8f21f98e5ea4165 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: 2007-05/txt/msg00272.txt.bz2 On 5/16/07, Markus Deuling wrote: > I try to build a shared library using gdb_compile_shlib. The build is done in two steps (compile and link). > > The testcase I work on adds > set lib_flags "$lib_flags additional_flags=-Wl,-Bsymbolic" > as an option to gdb_compile_shlib. The compile run quits with > gcc: -Bsymbolic: linker input file unused because linking not done > because the linker option is given to the compile run, too. > I've seen something similar before. Did you try using ldflags instead? I think those will only be used when linking. set lib_flags "$lib_flags ldflags=-Wl,-Bsymbolic" Cheers, Pedro Alves