On Wed, 5 Jun 2013, Matteo Semplice wrote: > Dear all, > I am coming back to libmesh after a (long) while and I have some > code and Makefiles that worked with libmesh 0.7.2. > > I have noticed that 0.9.1 has moved to autotools, so I am wondering if > there is a guide on how to transition my old makefiles to the newer > libmesh. I tried to include libmesh-0.9.1/contrib/make.common instead of > libmesh-0.7.2/libmesh/Make.common but obviously it wasn't enough...
No; I'm afraid we made a bit of a mistake when moving the Make.common to autotools - we made the default compilation rules use libtool, which lost us backwards compatibility with app Makefiles whose link rules don't use libtool. I actually fixed that about a month ago, so if you want to try the latest libMesh from git (which is currently in quite stable shape) it should work with your old Makefiles. If you want to stick with libMesh 0.9.1, then the easiest modification to a Make.common-based Makefile is probably the one I made: tell it to link with libtool. My Make_template diff looks like: - @$(libmesh_CXX) $(libmesh_CXXFLAGS) $(objects) -o $@ $(libmesh_LIBS) $(libmesh_LDFLAGS) $(EXTERNAL_FLAGS) + @$(libmesh_LIBTOOL) --tag=CXX $(LIBTOOLFLAGS) --mode=link $(libmesh_CXX) $(libmesh_CXXFLAGS) $(objects) -o $@ $(libmesh_LIBS) $(libmesh_LDFLAGS) $(EXTERNAL_FLAGS) --- Roy ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
