From 9d818423031083f227a5e872826ed8c2d6e14a0f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 27 Apr 2015 12:57:39 +0200 Subject: Add support for specifying library link order --- build/cxx/rule | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'build/cxx/rule') diff --git a/build/cxx/rule b/build/cxx/rule index d139cc7..da46eb6 100644 --- a/build/cxx/rule +++ b/build/cxx/rule @@ -38,8 +38,6 @@ namespace build class link: public rule { public: - enum class type {exe, liba, libso}; - virtual void* match (action, target&, const std::string& hint) const; @@ -48,6 +46,16 @@ namespace build static target_state perform_update (action, target&); + + private: + enum class type {e, a, so}; + enum class order {a, so, a_so, so_a}; + + static type + link_type (target&); + + static order + link_order (target&); }; } } -- cgit v1.1