X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Farchitecture.cpp;h=fd31bcdbfd942a9ad05146d73e7dbb73fcecc38b;hb=a957405689fafa1afc233182a3756e36ea34281c;hp=97ed2fe07dce2a0b0ebe9c5be4325e2c91486378;hpb=c51884994862b02613c2c0ae75b1f8d39e0f1ee5;p=builder.git diff --git a/source/architecture.cpp b/source/architecture.cpp index 97ed2fe..fd31bcd 100644 --- a/source/architecture.cpp +++ b/source/architecture.cpp @@ -108,8 +108,10 @@ Architecture::Architecture(Builder &b, const string &spec): { sharedlib_patterns.push_back(Pattern("%.dll")); sharedlib_patterns.push_back(Pattern("lib%.dll")); + /* XXX Hack: Consider import libraries (*.dll.a) as dynamic libraries, + even though technically they are linked statically. */ + sharedlib_patterns.push_back(Pattern("lib%.dll.a")); staticlib_patterns.push_back(Pattern("lib%.a")); - staticlib_patterns.push_back(Pattern("lib%.dll.a")); executable_patterns.push_back(Pattern("%.exe")); } else @@ -120,11 +122,6 @@ Architecture::Architecture(Builder &b, const string &spec): } } -void Architecture::set_cross_prefix(const string &p) -{ - cross_prefix = p; -} - bool Architecture::match_name(const string &pattern) const { vector parts = split(pattern, "-");