fix for linker wrt binaries generated with import statements

Signed-off-by: VoR0220 <rj@erisindustries.com>
This commit is contained in:
VoR0220 2017-01-30 13:41:33 -06:00
parent edd3696dc1
commit b3f0d713a1
No known key found for this signature in database
GPG Key ID: D4AB109D9B5D6386

View File

@ -426,7 +426,9 @@ bool CommandLineInterface::parseLibraryOption(string const& _input)
for (string const& lib: libraries)
if (!lib.empty())
{
auto colon = lib.find(':');
//search for last colon in string as our binaries output placeholders in the form of file:Name
//so we need to search for the second `:` in the string
auto colon = lib.rfind(':');
if (colon == string::npos)
{
cerr << "Colon separator missing in library address specifier \"" << lib << "\"" << endl;