]> git.tdb.fi Git - libs/datafile.git/commitdiff
Remove libpath from mspdatatool build info for correct linking with non-default outdir
authorMikko Rasa <tdb@tdb.fi>
Wed, 3 Sep 2008 16:56:56 +0000 (16:56 +0000)
committerMikko Rasa <tdb@tdb.fi>
Wed, 3 Sep 2008 16:56:56 +0000 (16:56 +0000)
Fix a bug where a non-buffered File was passed to Parser

Build
source/loader.h

diff --git a/Build b/Build
index 99edb318c4d40f2cc5f793445df36eb32436889f..d7e7238d862f70dcde1718be4dd70256fbbc33ae 100644 (file)
--- a/Build
+++ b/Build
@@ -25,7 +25,6 @@ package "mspdatafile"
                install true;
                build_info
                {
-                       libpath ".";
                        library "mspdatafile";
                };
        };
index 0c8118625918823ee2b5ebf6640bfd171a9d85fb..2a2d1416ece760be799037c022662c57244b9cc9 100644 (file)
@@ -366,7 +366,7 @@ void load(T &obj, const std::string &fn, U &arg)
        IO::File in(fn);
        IO::Buffered buf(in);
 
-       Parser parser(in, fn);
+       Parser parser(buf, fn);
        typename T::Loader loader(obj, arg);
        loader.load(parser);
 }