berkus / mclinker

Automatically exported from code.google.com/p/mclinker
Other
0 stars 0 forks source link

TestLinker::addNameSpec can not find correct shared object. #75

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In TestLinkerTest, if we add this test case:

TEST_F( TestLinkerTest, test) {
  m_pLinker->config()->options().setVerbose(3);
  mcld::sys::fs::Path top_level = TOPDIR;
  m_pLinker->addObject(top_level + "test/libs/ARM/Android/android-14/crtbegin_so.o");
  m_pLinker->addObject(top_level + "test/Android/Plasma/ARM/plasma.o");
  m_pLinker->addNameSpec("m");
  m_pLinker->addNameSpec("log");
  m_pLinker->addNameSpec("jnigraphics");
  m_pLinker->addNameSpec("c");
  m_pLinker->addObject(top_level + "test/libs/ARM/Android/android-14/crtend_so.o");
}

The MCLinker reports `Fatal: cannot recognize namespec -lm`

Original issue reported on code.google.com by LubaTang on 25 Jul 2012 at 8:25

GoogleCodeExporter commented 9 years ago
Bug fixed at Revision 2dd39fa22918

Original comment by LubaTang on 26 Jul 2012 at 4:22