From owner-freebsd-questions@FreeBSD.ORG Sun Dec 16 17:23:02 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 33D9BFE9 for ; Sun, 16 Dec 2012 17:23:02 +0000 (UTC) (envelope-from bourne.identity@hotmail.com) Received: from blu0-omc4-s21.blu0.hotmail.com (blu0-omc4-s21.blu0.hotmail.com [65.55.111.160]) by mx1.freebsd.org (Postfix) with ESMTP id DC2A18FC0C for ; Sun, 16 Dec 2012 17:23:01 +0000 (UTC) Received: from BLU0-SMTP115 ([65.55.111.135]) by blu0-omc4-s21.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 16 Dec 2012 09:21:54 -0800 X-EIP: [taXlBajoBt2E5o2EhJIugmrGZN8yhzmF] X-Originating-Email: [bourne.identity@hotmail.com] Message-ID: Received: from [127.0.0.1] ([121.245.133.177]) by BLU0-SMTP115.blu0.hotmail.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Sun, 16 Dec 2012 09:21:51 -0800 Date: Sun, 16 Dec 2012 22:52:05 +0530 From: Manish Jain User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20120824 Thunderbird/15.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Question on how do I tell make to choose between static and shared versions of a library References: In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 16 Dec 2012 17:21:52.0297 (UTC) FILETIME=[D6CB8990:01CDDBB1] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Dec 2012 17:23:02 -0000 Hello All, This is not a question strictly on FreeBSD. But since freebsd-questions is a lot quicker with its dependable responses, I decided to post my question here. Under /lib I have both versions - shared (libxyz.so.1) as well as static (libxyz.a) - of a library. How do I tell make to link to the static version, not the shared one ? The next obvious question is how to do the vice versa - tell make to link to the shared version, not the static one. Any help will be greatly appreciated. Thank you & -- Regards, Manish Jain bourne.identity@hotmail.com