From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id D381A3858C2B for ; Fri, 4 Nov 2022 16:04:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D381A3858C2B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca Received: from [172.16.42.100] (modemcable092.73-163-184.mc.videotron.ca [184.163.73.92]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 871BA1E0D3; Fri, 4 Nov 2022 12:04:34 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1667577874; bh=ibDOOgOoid9eBPI2YssFjQC6glnqkqah5ntwfJVIwPQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=encgcLnRpbCvvSTQqS7/PK34RyVUh9sDhbnWMwL1FMJEdXzoj1NjDOT0eE9ZbZXvT awbS6aLYmdvbZbPkGdW3R7uCw5WdTIvx3+/yiyQtIgljiCSc1XGc9qBvCR6o/t5iGs 3by7qlRqSkQQgZVhzCwlzrtfoiZzqZlXb1gBdbpo= Message-ID: Date: Fri, 4 Nov 2022 12:04:34 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [Mike Frysinger] Re: [PATCH, V3 10/15] gdb: sim: buildsystem changes to accommodate libsframe Content-Language: fr To: "Jose E. Marchesi" , "Jose E. Marchesi via Gdb-patches" Cc: indu.bhagat@oracle.com, elena.zannoni@oracle.com References: <87y1srrkpy.fsf@oracle.com> <87eduipx0f.fsf@oracle.com> <877d0apw9p.fsf@oracle.com> From: Simon Marchi In-Reply-To: <877d0apw9p.fsf@oracle.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-11.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,NICE_REPLY_A,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > It may be as easy as the following, plus start referring to libraries > like ../libbacktrace/libbacktrace.la in CLIBS, plus the bits in > configure.ac to search and SUBST LIBTOOL, etc. > > diff --git a/gdb/Makefile.in b/gdb/Makefile.in > index c528ee5aa80..d554e62b698 100644 > --- a/gdb/Makefile.in > +++ b/gdb/Makefile.in > @@ -146,7 +146,7 @@ MAKEHTMLFLAGS = > # Set this up with gcc if you have gnu ld and the loader will print out > # line numbers for undefined references. > #CC_LD = g++ -static > -CC_LD = $(CXX) $(CXX_DIALECT) > +CC_LD = $(LIBTOOL) --tag=CC --mode=link $(CXX) $(CXX_DIALECT) I'd be fine with that, especially if it simplifies other spots so we don't have to do different things based on enable_static. Simon