]> git.tdb.fi Git - builder.git/commitdiff
Remove automatic export/import of symbols from GNU tools on Windows
authorMikko Rasa <tdb@tdb.fi>
Tue, 3 Jan 2023 00:15:05 +0000 (02:15 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 3 Jan 2023 00:15:05 +0000 (02:15 +0200)
MSVC can't do this, so I'm finally going to add the necessary decorations
to my libraries.

plugins/gnu/gnulinker.cpp
plugins/gnu/mingwdlltool.cpp

index 710c44b9b3f0bfaf722be1372691775d66b8a718..c8e6606d8d540691692c361bc4efd8e3995a463e 100644 (file)
@@ -316,9 +316,6 @@ ExternalTask::Arguments GnuLinker::_run(const Binary &bin, FS::Path &work_dir)
                        if(i!=binfo.libmodes.end() && i->second<=BuildInfo::STATIC)
                                argv.push_back("-static-libstdc++");
                }
-
-               if(arch.get_system()=="windows")
-                       argv.push_back("-Wl,--enable-auto-import");
        }
 
        return argv;
index 8d5721bc38ea3b34a88e65656967f260c503428e..a3fdadbe3d8bb64e40b870d8b0efc22d7407d78b 100644 (file)
@@ -90,9 +90,6 @@ Task *MingwDllTool::_run(const Target &target)
                        if(ObjectFile *obj = dynamic_cast<ObjectFile *>(d))
                                argv.push_back(relative(obj->get_path(), work_dir).str());
 
-               // XXX Should use dllexport, but that has some other problems to solve
-               argv.push_back("--export-all-symbols");
-
                argv.push_back("-z");
                argv.push_back(relative(exp->get_path(), work_dir).str());
        }