--- VAAL.orig/MakeDepend.cc 2008-12-18 17:05:48.000000000 +0100 +++ VAAL/MakeDepend.cc 2010-02-14 13:42:23.734370178 +0100 @@ -1195,9 +1195,6 @@ } } mf << " -L. -L$(LIB) -L$(OBJ) $(LINK_LIBS)"; - for ( set::iterator dep_iter = lib_deps.begin(); - dep_iter != lib_deps.end(); ++dep_iter ) - mf << " " << "$(" << *dep_iter << "_LFLAGS)"; for ( set::iterator dep_iter = sharedlib_deps.begin(); dep_iter != sharedlib_deps.end(); ++dep_iter ) { // Extract the symbolic name of this library from its filename. @@ -1208,6 +1205,9 @@ mf << " -l" << sharedlib_name; } mf << " -l" << libname; + for ( set::iterator dep_iter = lib_deps.begin(); + dep_iter != lib_deps.end(); ++dep_iter ) + mf << " " << "$(" << *dep_iter << "_LFLAGS)"; mf << "\n\t" << "/bin/rm $(OBJ)/lib" << libname << ".a\n"; } }