[MOAB-dev] Building MOAB-based applications
Tim Tautges
tautges at mcs.anl.gov
Sat Jan 16 12:51:10 CST 2010
Jason Kraftcheck wrote:
> Tim Tautges wrote:
>> As we approach a MOAB release, I think we need to clean this up some.
>> In particular, it seems like the make variables that used to be defined
>> in moab.make and/or iMesh-Defs.inc have drifted some. The general
>> overall goal should be to make simple things easy, without making more
>> complex things impossible. To me, that means providing make variables
>> for compilers used by MOAB, and for libraries needed by applications
>> compiling against MOAB and iMesh.
>
> It is rather complicated to extract some of the variables used by libtool.
> Particularly with libtool 2.x, for which the actual libtool script isn't
> generated until after the configure script completes. We'd probably end up
> re-writing a lot of the libtool configure functionality to correctly
> determine things like the equivalent of the -R link flag.
>
The -R stuff I think we could live without, I'm talking more about what we used to do with gathering up libs needed to
link to MOAB/CGM with any linker, e.g. the libs implied by linking with g++. The intent of doing that was to take away
another of the requirements for linking apps against our libs. I think some of that is still there in our makefile
support files, but I don't think it's consistent. Although, maybe that's just needed in the iXxx-Defs.inc, since
MOAB/CGM can't be used directly from C/Fortran?
>> I think we should also consider
>> installing somewhere the options used to configure MOAB, if they aren't
>> already (I can't remember seeing them anywhere).
>
> These are available in the build directory with './config.status --version'.
> Depending on the format in which you want them in the installed directory,
> we could do something as simple as
> './config.status --version > ${DISTDIR}${libdir}/moab.config'
>
That sounds like a good solution. Please make it so.
- tim
> - jason
>
--
================================================================
"You will keep in perfect peace him whose mind is
steadfast, because he trusts in you." Isaiah 26:3
Tim Tautges Argonne National Laboratory
(tautges at mcs.anl.gov) (telecommuting from UW-Madison)
phone: (608) 263-8485 1500 Engineering Dr.
fax: (608) 263-4499 Madison, WI 53706
More information about the moab-dev
mailing list