summaryrefslogtreecommitdiff
blob: 31649010dbe3946398beafc9d2dc4f7b17a1edf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- 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<string>::iterator dep_iter = lib_deps.begin(); 
-	  dep_iter != lib_deps.end(); ++dep_iter )
-      mf << " " << "$(" << *dep_iter << "_LFLAGS)";
     for ( set<string>::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<string>::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";
   }
 }