From 2f97fb3eb7cb6f0c50c8d8463f2edd45ca87c7dc Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Thu, 16 Jun 2005 09:23:33 +0000 Subject: [PATCH] Don't add "lib" prefix if there's already "lib" prefix. Adjust paremeter list of 'notfile-target.__init__'. [SVN r29609] --- v2/build/virtual-target.jam | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/v2/build/virtual-target.jam b/v2/build/virtual-target.jam index a114ddfdd..4ea2d7277 100644 --- a/v2/build/virtual-target.jam +++ b/v2/build/virtual-target.jam @@ -457,7 +457,8 @@ rule add-prefix-and-suffix ( specified-name : type ? : property-set ) local prefix ; - if [ type.is-derived $(type) LIB ] && [ os.on-unix ] + if [ type.is-derived $(type) LIB ] && [ os.on-unix ] + && ! [ MATCH ^(lib) : $(specified-name) ] { prefix = "lib" ; } @@ -567,9 +568,9 @@ class file-target : abstract-file-target class notfile-target : abstract-file-target { - rule __init__ ( name : project ) + rule __init__ ( name : project : action ? ) { - abstract-file-target.__init__ $(name) : : $(project) ; + abstract-file-target.__init__ $(name) : : $(project) : $(action) ; } # Returns nothing, to indicate that target path is not known.