From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 606 invoked by alias); 11 May 2010 13:01:29 -0000 Received: (qmail 523 invoked by uid 22791); 11 May 2010 13:01:28 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_SORBS_WEB,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-fx0-f41.google.com (HELO mail-fx0-f41.google.com) (209.85.161.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 11 May 2010 13:01:25 +0000 Received: by fxm9 with SMTP id 9so1945632fxm.0 for ; Tue, 11 May 2010 06:01:23 -0700 (PDT) Received: by 10.223.68.131 with SMTP id v3mr6173852fai.82.1273582882506; Tue, 11 May 2010 06:01:22 -0700 (PDT) Received: from [10.204.10.153] ([95.181.19.54]) by mx.google.com with ESMTPS id 2sm26557133fav.1.2010.05.11.06.01.07 (version=SSLv3 cipher=RC4-MD5); Tue, 11 May 2010 06:01:09 -0700 (PDT) Message-ID: <4BE95517.60903@gmail.com> Date: Tue, 11 May 2010 13:01:00 -0000 From: michael kapelko User-Agent: Thunderbird 2.0.0.23 (X11/20090820) MIME-Version: 1.0 To: binutils@sourceware.org Subject: Re: How can I link several static libraries into single shared library? References: <4BE9029F.5060708@gmail.com> <20100511072709.GD5443@bubble.grove.modra.org> In-Reply-To: <20100511072709.GD5443@bubble.grove.modra.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2010-05/txt/msg00096.txt.bz2 Looks like i found the way to do it: ld -shared -h libmj.so.1.0 -o libmj.so --whole-archive ./libalure.a ./libOgreMainStatic.a At least it grows in size. Thanks.