X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgnulinker.h;h=e8a4e3ce996f749659485aa7133ec9ec82fcf58e;hb=HEAD;hp=713b978064747ab570b15f9cbc764ddaa149b014;hpb=1ed833343bc83b83c5f61cbfd74423bbba677a04;p=builder.git diff --git a/source/gnulinker.h b/source/gnulinker.h deleted file mode 100644 index 713b978..0000000 --- a/source/gnulinker.h +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef GNULINKER_H_ -#define GNULINKER_H_ - -#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 -create_target. - -Uses either gcc or g++ depending on what was used to compile the object files. -*/ -class GnuLinker: public Tool -{ -private: - class Linker: public SubTool - { - private: - std::string compiler_tag; - - public: - Linker(GnuLinker &, const std::string &); - - std::string create_build_signature(const BuildInfo &) const override; - private: - void do_prepare() override; - - public: - static Task *_run(const Binary &); - }; - - Linker *default_linker = 0; - Linker *cxx_linker = 0; - -public: - GnuLinker(Builder &, const Architecture &); - ~GnuLinker(); - - Target *create_target(const std::vector &, const std::string &) override; - Target *create_install(Target &) const override; -protected: - void do_prepare() override; -}; - -#endif