2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 01:12:13 +00:00

On Windows static libs have the lib prefix, but DLLs don't.

[SVN r38918]
This commit is contained in:
Rene Rivera
2007-08-25 04:08:28 +00:00
parent 3372215ea6
commit 1d35c7d9fc

View File

@@ -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):