From: Andrew R. <and...@us...> - 2009-03-12 18:46:19
|
On Thu, Mar 12, 2009 at 10:35:28AM -0600, Deis, Robert CTR MDA/DES wrote: > Classification: UNCLASSIFIED > Caveats: NONE > > > I am building plplot 5.9.0 on two RedHat Enterprise linux systems, IA64 > Enterprise 4, and x86_64 Enterprise 5. > > I am able to build and link executables using plplot *.so libraries > installed as system level libraries. > > However, for a number of reasons, my system strongly prefers tightly > controlled static libraries to shared objects. Instead of using plplot > shared objects installed in system level /usr/lib directories, they want to > control the plplot package within an SVN repository and include the library > directories and static library files as SVN external objects attached to the > applications that need it. > > Can I configure plplot to build only static lib*.a libraries and no shared > object libraries to support this requirement? > > If so, what options should I feed to Cmake to accomplish this? > > Thanks! Robert, The options you are looking for are BUILD_SHARED_LIBS:BOOL=ON - build shared libraries (ON) or static libraries (OFF) ENABLE_DYNDRIVERS:BOOL=ON - build device drivers as dynamically loaded plugins (ON) or as part of the PLplot core C library (OFF) which enable / disable shared libraries and dynamically loaded device drivers. Turning both of these to OFF should do what you want. By the way the plplot wiki http://www.miscdebris.net/plplot_wiki/index.php is a useful source of information on these (and many other) topics related to building and using plplot on different platforms. Andrew |