[MOAB-dev] Building MOAB-based applications

Jason Kraftcheck kraftche at cae.wisc.edu
Thu Jan 14 08:55:26 CST 2010


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.

> 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'

- jason


More information about the moab-dev mailing list