Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

How to build netcdf 3.6.0p1 as a dynamic shared library on Mac OS X?

Hello all!

I was wondering if anyone here has built netcdf 3.6.0p1 as a dynamic
shared library (.dylib), as opposed to a static library (.a) on Mac OS
X? (10.4 and gcc 4 to be exact).

I ask because static libraries, at least on OS X, do not work well
across different compilers or even compiler versions. As an example,
several 3rd party libraries that I use built with gcc 3.3 will not link
in a gcc 4 application.  And so I am investigating building all
libraries as dynamic instead of static.

I am not very familiar with the configure/make build system, but for
other 3rd party libs that I use, I was able to build as dynamic like so:

./configure --enable-shared --disable-static
make

but in the netcdf case, while no error is given for those parameters, I
still end up with only static libraries.

I'd greatly appreciate any help,

Thanks a lot!

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean@xxxxxxxxxxxxxxxxxx
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada




 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690