X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgnulinker.h;h=6bd11ca441afda7f4be2e275d4ce80862894de2e;hb=c8dfe708b5551818dad3f6cf3e86cc72fe684572;hp=2fdaa3a58061f80c8de2c8319d2b79c25ad2d8dd;hpb=3e8f3a5e852e9dd5b78ec3d89c722ef1bae6bef5;p=builder.git diff --git a/source/gnulinker.h b/source/gnulinker.h index 2fdaa3a..6bd11ca 100644 --- a/source/gnulinker.h +++ b/source/gnulinker.h @@ -3,6 +3,13 @@ #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: @@ -19,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;