From 1d35c7d9fc3dbeab5a3c143aab3ed9ff52d05a2d Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sat, 25 Aug 2007 04:08:28 +0000 Subject: [PATCH] On Windows static libs have the lib prefix, but DLLs don't. [SVN r38918] --- v2/test/BoostBuild.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/v2/test/BoostBuild.py b/v2/test/BoostBuild.py index 8fa95af5c..e57b3c179 100644 --- a/v2/test/BoostBuild.py +++ b/v2/test/BoostBuild.py @@ -64,9 +64,10 @@ def glob_remove(sequence,pattern): features = [ 'threading-multi' ] lib_prefix = 1 +dll_prefix = 1 if windows: - lib_prefix = 0 - + #~ lib_prefix = 0 + dll_prefix = 0 # @@ -681,11 +682,16 @@ class Tester(TestCmd.TestCmd): pos = string.rfind(name, ".") if pos != -1: suffix = name[pos:] - if suffix in [".lib", ".dll"]: + if suffix == ".lib": (head, tail) = os.path.split(name) if lib_prefix: tail = "lib" + tail result = os.path.join(head, tail) + elif suffix == ".dll": + (head, tail) = os.path.split(name) + if dll_prefix: + tail = "lib" + tail + result = os.path.join(head, tail) return result def adjust_suffix(self, name):