From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20602 invoked by alias); 15 Mar 2010 17:28:23 -0000 Received: (qmail 20593 invoked by uid 22791); 15 Mar 2010 17:28:23 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from exprod6og104.obsmtp.com (HELO exprod6og104.obsmtp.com) (64.18.1.187) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 15 Mar 2010 17:28:20 +0000 Received: from source ([192.150.11.134]) by exprod6ob104.postini.com ([64.18.5.12]) with SMTP ID DSNKS55uMc9l9ehJccnsc1iYZ/fECdAMWeQO@postini.com; Mon, 15 Mar 2010 10:28:20 PDT Received: from inner-relay-1.corp.adobe.com ([153.32.1.51]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id o2FHK418017751; Mon, 15 Mar 2010 10:20:04 -0700 (PDT) Received: from nacas02.corp.adobe.com (nacas02.corp.adobe.com [10.8.189.100]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id o2FHSBTL008607; Mon, 15 Mar 2010 10:28:11 -0700 (PDT) Received: from nambxv01a.corp.adobe.com ([10.8.189.95]) by nacas02.corp.adobe.com ([10.8.189.100]) with mapi; Mon, 15 Mar 2010 10:28:10 -0700 From: "John (Eljay) Love-Jensen" To: Erik Rull , GCC-help Date: Mon, 15 Mar 2010 19:17:00 -0000 Subject: Re: Transitive Linking fails Message-ID: In-Reply-To: <4B9E6B2A.2080901@rdsoftware.de> user-agent: Microsoft-Entourage/13.0.0.090609 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2010-03/txt/msg00191.txt.bz2 Hi Erik, I think you need to do it this way: dir1/*.o dir2/libx.a -> dir3/liby.so The point to -static is to prefer libx.a rather than libx.so when you ask for -lx. By specifying dir2/libx.so, you are bypassing the -static facility because you are using an explicitly named library. HTH, --Eljay