Use fixed version for libngspice.so.0

CanonicalizeName only adds the lib prefix and .so suffix, so loading
libngspice.so fails until the development package is installed.
MAC/Windows code paths lookup soversion 0 of ngspice as well, as this
is the only compatible version.
This commit is contained in:
Stefan Brüns
2018-10-26 23:35:13 +02:00
committed by Maciej Suminski
parent d95ab28db9
commit 36bb92f844
+3 -1
View File
@@ -318,8 +318,10 @@ void NGSPICE::init_dll()
}
if( !m_dll.IsLoaded() ) // try also the system libraries
#endif /* __WINDOWS || __WXMAC__ */
m_dll.Load( wxDynamicLibrary::CanonicalizeName( "ngspice" ) );
#else
m_dll.Load("libngspice.so.0");
#endif /* __WINDOWS || __WXMAC__ */
if( !m_dll.IsLoaded() )
throw std::runtime_error( "Missing ngspice shared library" );