]> git.tdb.fi Git - builder.git/commitdiff
Install shared libraries on windows to bin, not lib
authorMikko Rasa <tdb@tdb.fi>
Fri, 7 Sep 2012 18:37:44 +0000 (21:37 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 7 Sep 2012 18:37:44 +0000 (21:37 +0300)
Linking is done through import libraries, so the dlls are only needed for
running the application.

source/sharedlibrary.cpp

index 06a99442b2fb47377044546d1646d7d599da5dcb..e94ffeb6d46867813b4c18a23e7fbb74bb00e3c3 100644 (file)
@@ -22,7 +22,10 @@ SharedLibrary::SharedLibrary(Builder &b, const Component &c, const list<ObjectFi
        libname(c.get_name()),
        import_lib(0)
 {
-       install_location = "lib";
+       if(builder.get_current_arch().get_system()=="windows")
+               install_location = "bin";
+       else
+               install_location = "lib";
        if(component->get_type()==Component::MODULE)
                install_location /= package->get_name();