diff --git a/tools/analyze/Makefile b/tools/analyze/Makefile index 97a54bcdce0..e8e191c0e28 100644 --- a/tools/analyze/Makefile +++ b/tools/analyze/Makefile @@ -6,5 +6,5 @@ clean :: rm -f opt analyze : $(ObjectsG) Debug/.dir Depend/.dir - $(LinkG) -o $@ $(ObjectsG) -lvmcore -lanalysis -lbcreader \ - -lopt -lasmwriter -lasmparser + $(LinkG) -o $@ $(ObjectsG) -lopt -lasmparser \ + -lbcreader -lvmcore -lasmwriter -lanalysis diff --git a/tools/as/Makefile b/tools/as/Makefile index 3fa7984e621..9d36cc1d007 100644 --- a/tools/as/Makefile +++ b/tools/as/Makefile @@ -6,4 +6,4 @@ clean:: rm -f as as : $(ObjectsG) - $(LinkG) -o as $(ObjectsG) -lvmcore -lasmparser -lbcwriter -lanalysis -lasmwriter + $(LinkG) -o as $(ObjectsG) -lasmparser -lbcwriter -lasmwriter -lanalysis -lvmcore diff --git a/tools/dis/Makefile b/tools/dis/Makefile index fc77cdd1404..e6624ab5442 100644 --- a/tools/dis/Makefile +++ b/tools/dis/Makefile @@ -6,5 +6,5 @@ clean :: rm -f dis dis : $(ObjectsG) - $(LinkG) -o $@ $(ObjectsG) -lvmcore -lasmwriter -lanalysis \ - -lbcreader + $(LinkG) -o $@ $(ObjectsG) -lbcreader -lasmwriter -lanalysis -lvmcore + diff --git a/tools/llvm-as/Makefile b/tools/llvm-as/Makefile index 3fa7984e621..9d36cc1d007 100644 --- a/tools/llvm-as/Makefile +++ b/tools/llvm-as/Makefile @@ -6,4 +6,4 @@ clean:: rm -f as as : $(ObjectsG) - $(LinkG) -o as $(ObjectsG) -lvmcore -lasmparser -lbcwriter -lanalysis -lasmwriter + $(LinkG) -o as $(ObjectsG) -lasmparser -lbcwriter -lasmwriter -lanalysis -lvmcore diff --git a/tools/llvm-dis/Makefile b/tools/llvm-dis/Makefile index fc77cdd1404..e6624ab5442 100644 --- a/tools/llvm-dis/Makefile +++ b/tools/llvm-dis/Makefile @@ -6,5 +6,5 @@ clean :: rm -f dis dis : $(ObjectsG) - $(LinkG) -o $@ $(ObjectsG) -lvmcore -lasmwriter -lanalysis \ - -lbcreader + $(LinkG) -o $@ $(ObjectsG) -lbcreader -lasmwriter -lanalysis -lvmcore + diff --git a/tools/opt/Makefile b/tools/opt/Makefile index 71bdcb85d91..a01097ff55b 100644 --- a/tools/opt/Makefile +++ b/tools/opt/Makefile @@ -6,5 +6,5 @@ clean :: rm -f opt opt : $(ObjectsG) - $(LinkG) -o $@ $(ObjectsG) -lvmcore -lanalysis -lbcreader -lbcwriter \ - -lopt -lasmwriter + $(LinkG) -o $@ $(ObjectsG) -lopt -lbcreader -lbcwriter \ + -lasmwriter -lanalysis -lvmcore