From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14058 invoked by alias); 7 May 2002 22:40:00 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 13993 invoked from network); 7 May 2002 22:39:59 -0000 Received: from unknown (HELO fepA.post.tele.dk) (195.41.46.143) by sources.redhat.com with SMTP; 7 May 2002 22:39:59 -0000 Received: from tdcadsl.dk ([80.62.84.198]) by fepA.post.tele.dk (InterMail vM.4.01.03.23 201-229-121-123-20010418) with ESMTP id <20020507223957.QKJP1178.fepA.post.tele.dk@tdcadsl.dk> for ; Wed, 8 May 2002 00:39:57 +0200 Message-ID: <3CD856C1.B6663D4C@tdcadsl.dk> Date: Tue, 07 May 2002 15:40:00 -0000 From: bjorn rohde jensen Reply-To: shamus@tdcadsl.dk X-Accept-Language: en MIME-Version: 1.0 CC: gcc-help@gcc.gnu.org Subject: Re: static for some, but not all References: <200205072052.g47Kq7j3030486@neutrino.phy.uct.ac.za> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg00077.txt.bz2 Hi Sam, So far i have resorted to passing options to the linker using -Wl,-Bstatic and -Wl,-Bdynamic to switch back and forth between static and dynamic libs. It is a crude way to do it, and you have to check the linker for docu on the proper options etc. Yours sincerely, Bjorn Sam Halliday wrote: > > hello there, > > i am trying to build a binary that includes some libs as static and others as > dynamic, does anyone know how would i do that? i fit helps matters, the lib i > want dynamic is an X lib, -lXext > > (please CC any responses to this address) > thanks in advance! > Sam > -- > Look before you leap. > -- Samuel Butler