On Fri, Apr 1, 2016 at 11:29 AM, Salazar De Troya, Miguel < [email protected]> wrote:
> Hello > > I am trying to understand the compilation process here. Using the > Make.common in my Makefile generates libmesh_LIBS that I will use in my > application’s Makefile. However, as I have recently learned, since libmesh > is a shared library, I might not need to link to all those libraries since > libMesh already links to them. How should I deal with this? Does libtool > come here to get rid of all the unnecessary libraries? I found this in one > of the examples’ old Makefile. > > > $(notdir $(target)): $(objects) > > @echo "Linking "$@"..." > > @$(libmesh_LIBTOOL) --tag=CXX $(LIBTOOLFLAGS) --mode=link \ > > $(libmesh_CXX) $(libmesh_CXXFLAGS) $(objects) -o $@ $(libmesh_LIBS) > $(libmesh_LDFLAGS) $(EXTERNAL_FLAGS) > Yes, this is the right way to do linking, i.e. using $(libmesh_LIBS) *and* libtool, because it handles differences in dynamic linking on different platforms. -- John ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140 _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
