From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12146 invoked by alias); 15 Mar 2010 17:15:31 -0000 Received: (qmail 12137 invoked by uid 22791); 15 Mar 2010 17:15:30 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from moutng.kundenserver.de (HELO moutng.kundenserver.de) (212.227.17.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 15 Mar 2010 17:15:17 +0000 Received: from [192.168.0.115] (p5B131D37.dip.t-dialin.net [91.19.29.55]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0LcEVR-1NQ6ey30uj-00k9mq; Mon, 15 Mar 2010 18:15:13 +0100 Message-ID: <4B9E6B2A.2080901@rdsoftware.de> Date: Mon, 15 Mar 2010 17:28:00 -0000 From: Erik Rull User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.22) Gecko/20090605 SeaMonkey/1.1.17 MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Transitive Linking fails Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00190.txt.bz2 Hi all, I want to do the following: dir1/*.o dir2/libx.so -> dir3/liby.so where dir2/libx.so is statically linked (using -static in the linker command). It seems to work until the liby.so is linked against other code: dir4/*.o dir3/liby.so -> dir5/app There, the linker complains that it doesn't know anything about dir2/libx.so, but I want this lib to be statically linked into the liby.so so that no application needs to care about where the object code from libx.so comes from. What is my fault here? Any ideas? Best regards, Erik