Re: [Log4cplus-devel] log4cplus SO file - forcing the SONAME header field
Logging Framework for C++
Brought to you by:
wilx
From: Marcel L. <mar...@zo...> - 2013-05-23 17:47:42
|
Op 23-05-13 15:25, Brice Copy schreef: > > Hello, > > I am compiling log4cplus from source on Red Hat enterprise 5 (CERN > scientific linux) 32 and 64 bits. > > The point is to package Log4cplus in my Java webstart project (to > enable logging in a native C++ library). > > The problem is that when I use the configure and make scripts, it > produces a liblog4cplus-1.1.so.5 library file. > > I really need the library file that ends with ".so" - or Java > webstart will not unpack it from the native library JAR package and > add it to the library path. > > Renaming the file to liblog4cplus-1.1.so does not work, because I link > my own native library to log4cplus, and the liblog4cplus-1.1.so.5 file > contains the SONAME set to "liblog4cplus-1.1.so.5" (so the linker will > link to liblog4cplus-1.1.so but my own library expects > liblog4cplus-1.1.so.5 to be present on the path). > > Is there a "configure" option I can use to force the SONAME to > liblog4cplus-1.1.so ? > > Or can I strip the SONAME from the final library, thereby forcing the > linker to link to the library file name liblog4cplus-1.1.so ? > > Thanks, > > Brice > > > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > > > _______________________________________________ > Log4cplus-devel mailing list > Log...@li... > https://lists.sourceforge.net/lists/listinfo/log4cplus-devel Hi Brice, I may be wrong, but isn't the Linux way of handling this to create a symbolic link. Usually, the SONAME contains the full library name (or at least the part containing the major version number). Cheers, Marcel Loose. |