X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuildinfo.h;h=fa8ae62d39606527509d7c9a8b8dd18d77db68e7;hb=22907c578cb8244c60e8ab1b3466340768491dd1;hp=5528748fc55c82bfde6b14d09e3ca9bc3313e3bc;hpb=7885ebe9620edd82f119eb290267c8e7eda014ed;p=builder.git diff --git a/source/buildinfo.h b/source/buildinfo.h index 5528748..fa8ae62 100644 --- a/source/buildinfo.h +++ b/source/buildinfo.h @@ -21,6 +21,13 @@ public: FORCE_DYNAMIC //< Only accept dynamic libraries }; + enum RuntimePathMode + { + NO_RPATH, //< Do not record rpath in binaries + RELATIVE, //< Record relative rpath in binaries + ABSOLUTE //< Record absolute rpath in binaries + }; + class Loader: public Msp::DataFile::ObjectLoader { public: @@ -64,6 +71,7 @@ public: public: Tracked(): value(T()), set(false) { } Tracked(T v): value(v), set(false) { } + Tracked(const Tracked &t): value(t.value), set(t.set) { } Tracked &operator=(const Tracked &v) { if(v.set) { value = v.value; set = true; } return *this; } Tracked &operator=(const T &v) { value = v; set = true; return *this; } @@ -83,6 +91,7 @@ public: PathList libpath; WordList libs; Tracked libmode; + Tracked rpath_mode; LibModeMap libmodes; WordList keep_symbols; StandardMap standards;