X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgnulinker.h;h=713b978064747ab570b15f9cbc764ddaa149b014;hb=1ed833343bc83b83c5f61cbfd74423bbba677a04;hp=0644e9474348ba6e228eb71de0124bd7408fa2ca;hpb=aa053d637e8259755af7d2e4b510a242f4d29c7b;p=builder.git diff --git a/source/gnulinker.h b/source/gnulinker.h index 0644e94..713b978 100644 --- a/source/gnulinker.h +++ b/source/gnulinker.h @@ -3,6 +3,8 @@ #include "tool.h" +class Binary; + /** The GNU linker. Turns ObjectFiles into Executables and SharedLibraries. To create a shared library, specify "shared" as the second argument to @@ -24,12 +26,13 @@ private: std::string create_build_signature(const BuildInfo &) const override; private: void do_prepare() override; + public: - Task *run(const Target &) const override; + static Task *_run(const Binary &); }; - Linker *default_linker; - Linker *cxx_linker; + Linker *default_linker = 0; + Linker *cxx_linker = 0; public: GnuLinker(Builder &, const Architecture &); @@ -39,8 +42,6 @@ public: Target *create_install(Target &) const override; protected: void do_prepare() override; -public: - Task *run(const Target &) const override; }; #endif