Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2005-07-24 13:41:08


Path: news.gmane.org!not-for-mail
From: Andrey Melnikov <melnikov_at_[hidden]>
Newsgroups: gmane.comp.lib.boost.devel
Subject: [BBv2] "lib" prefix isn't added to static libraries in bbv2
Date: Sun, 10 Jul 2005 04:22:14 +0300
Organization: SimplexSoft
Lines: 41
Approved: news_at_[hidden]
Message-ID: <42D07846.2020502_at_[hidden]>
Reply-To: boost_at_[hidden]
NNTP-Posting-Host: main.gmane.org
NNTP-Posting-Date: Sun, 10 Jul 2005 01:25:05 +0000 (UTC)
Original-X-From: boost-bounces_at_[hidden] Sun Jul 10 03:25:03 2005
Return-path: <boost-bounces_at_[hidden]>
Original-Received: from milliways.osl.iu.edu ([129.79.245.239])
by ciao.gmane.org with esmtp (Exim 4.43)
id 1DrQYx-0000Ot-8n
for gcp-boost_at_[hidden]; Sun, 10 Jul 2005 03:24:55 +0200
Original-Received: from milliways.osl.iu.edu (localhost [127.0.0.1])
by milliways.osl.iu.edu (8.12.11/8.12.11/IUCS_2.65) with ESMTP id j6A1MsPb010642;
Sat, 9 Jul 2005 20:22:57 -0500
Original-Received: from aviti.net (mailnull_at_[hidden] [217.144.68.1])
by milliways.osl.iu.edu (8.12.11/8.12.11/IUCS_2.65) with ESMTP id
j6A1MqIh010637
for <boost_at_[hidden]>; Sat, 9 Jul 2005 20:22:52 -0500
Original-Received: from zone3000.kharkov.ua ([217.144.68.98] helo=[10.1.1.177])
by aviti.net with esmtp (Exim 4.30; FreeBSD) id 1DrQWr-000PAj-NQ
for boost_at_[hidden]; Sun, 10 Jul 2005 04:22:45 +0300
Original-To: boost_at_[hidden]
Precedence: list
List-Id: Boost developers' mailing list <boost.lists.boost.org>
List-Unsubscribe: <http://lists.boost.org/mailman/listinfo.cgi/boost>,
<mailto:boost-request_at_[hidden]?subject=unsubscribe>
List-Archive: <http://lists.boost.org/MailArchives/boost>
List-Post: <mailto:boost_at_[hidden]>
List-Help: <mailto:boost-request_at_[hidden]?subject=help>
List-Subscribe: <http://lists.boost.org/mailman/listinfo.cgi/boost>,
<mailto:boost-request_at_[hidden]?subject=subscribe>
Original-Sender: boost-bounces_at_[hidden]
Errors-To: boost-bounces_at_[hidden]
Xref: news.gmane.org gmane.comp.lib.boost.devel:127625
MIME-Version: 1.0

I had to add a dirty hack to stage.jam in order to get "lib" prefix
which is used to distinguish between static and import libraries on
Windows.

I modified virtual-target.add-prefix-and-suffix the following way.
Is it ok?

Andrey

rule add-prefix-and-suffix ( specified-name : type ? : property-set )
{
local suffix = [ type.generated-target-suffix $(type) :
$(property-set) ] ;
suffix = .$(suffix) ;

local prefix ;

if [ type.is-derived $(type) LIB ]
&& ! [ MATCH ^(lib) : $(specified-name) ]
{
if [ os.on-unix ]
{
prefix = "lib" ;
}
else
{
if [ os.on-windows ] && [ $(property-set).get <link> ] =
"static"
{
prefix = "lib" ;
}
}

}

return $(prefix:E="")$(specified-name)$(suffix:E="") ;
}

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

 --=-=-=

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com
 --=-=-=-- 

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk