]> git.tdb.fi Git - builder.git/commitdiff
Make mingw linker happy
authorMikko Rasa <tdb@tdb.fi>
Thu, 26 Jul 2012 19:47:24 +0000 (22:47 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 26 Jul 2012 19:47:24 +0000 (22:47 +0300)
source/gnulinker.cpp

index 7c3f872acdb84a668ad4b4c339dd6c826a829536..d2ea51e96c9a3e36387f0f64198aa2c4242443f9 100644 (file)
@@ -175,6 +175,8 @@ Task *GnuLinker::Linker::run(const Target &target) const
 
        if(static_link_ok)
                argv.push_back("-static");
+       else if(architecture->get_system()=="windows")
+               argv.push_back("-Wl,--enable-auto-import");
 
        return new ExternalTask(argv, work_dir);
 }