X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgnulinker.h;h=6bd11ca441afda7f4be2e275d4ce80862894de2e;hb=30b1243ff16b908ae18b4ab9d70f772c9196b949;hp=9f0475adf7202de215696716a10e35ccd14424ba;hpb=37ffa892c453a91f06d34068e239e1ba316d7700;p=builder.git diff --git a/source/gnulinker.h b/source/gnulinker.h index 9f0475a..6bd11ca 100644 --- a/source/gnulinker.h +++ b/source/gnulinker.h @@ -3,14 +3,18 @@ #include "tool.h" +/** +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 command; - public: Linker(GnuLinker &, const std::string &); @@ -22,7 +26,7 @@ private: Linker *cxx_linker; public: - GnuLinker(Builder &); + GnuLinker(Builder &, const Architecture &); ~GnuLinker(); virtual Target *create_target(const std::list &, const std::string &) const;