From: Alan W. I. <ir...@be...> - 2006-07-27 20:03:20
|
On 2006-07-26 22:27-0400 hba...@ma... wrote: > > On Jul 26, 2006, at 10:12 PM, Hazen Babcock wrote: > >> >> I used to see an error like this (meaning the message about -multi_module) >> when I would try to compile with Fortran, and I could make it go away >> with: >> >> make FFLAGS="-Wl,-single_module" FCFLAGS="-Wl,-single_module" >> >> However, disabling Fortran with ccmake doesn't resolve this. I guess the >> "multi_module" / OS-X linker problem has propagated into the C part of the >> build. > > Figured it out :). Excellent. > In the ccmake advanced menu you can set > CMAKE_SHARED_LINKER_FLAGS to "-single_module" and compile PLplot on OS-X. If > you don't get to it first, I will try and figure out how to make cmake do > that automatically for OS-X deployment. Try the following in the top-level CMakeLists.txt file. if(APPLE) set(CMAKE_SHARED_LINKER_FLAGS "-single_module" CACHE INTERNAL "") endif(APPLE) CACHE INTERNAL always overrides the cached value which I believe is probably what you want. Note, there are related variables to change for other situations (for various kinds of builds [debug, optimized for release, etc.], and for modules as well). Also, there appears to be a duplicate advanced set. Have a look at CMakeCache.txt to see all the combinations. I will post a question to the cmake list on which of these combinations you have to set. > > It really is a lot faster. Nice work you guys! You're welcome, and thanks for saying so. I am really pleased that checkpoint 4.1 worked for you on Mac OS X with just this one minor change. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |