summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2011-11-22 19:40:31 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2011-11-22 19:40:31 +0000
commit9fe98cc3ebc2b1d4f6d828dfb1cea0f34d02bbb6 (patch)
tree672729932501f59a9638bd4067b4c2b9a1274cdd
parent34525d37b122fb0e9ad93649bcd3fb5266db0c63 (diff)
downloadbcm5719-llvm-9fe98cc3ebc2b1d4f6d828dfb1cea0f34d02bbb6.tar.gz
bcm5719-llvm-9fe98cc3ebc2b1d4f6d828dfb1cea0f34d02bbb6.zip
autoconf: Change order of linking files
This fixes (or hides) the problem of symbols not being available in the autoconf build. llvm-svn: 145074
-rwxr-xr-xpolly/lib/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/polly/lib/Makefile b/polly/lib/Makefile
index 0cb88ab973b..d81635282c9 100755
--- a/polly/lib/Makefile
+++ b/polly/lib/Makefile
@@ -5,9 +5,6 @@
#
LEVEL :=..
-DIRS = Support
-USEDLIBS = pollysupport.a
-
LIBRARYNAME=LLVMPolly
LOADABLE_MODULE = 1
@@ -15,12 +12,18 @@ include $(LEVEL)/Makefile.config
CPP.Flags += $(POLLY_INC)
-DIRS += Exchange
-USEDLIBS += pollyexchange.a
+DIRS = Exchange
+USEDLIBS = pollyexchange.a
DIRS += Analysis
USEDLIBS += pollyanalysis.a
+# This needs to be added after the files that use it, otherwise some functions
+# from pollysupport are not available. They will be eliminated if they are
+# not used at the time of linking pollysupport.a
+DIRS += Support
+USEDLIBS += pollysupport.a
+
DIRS += JSON
USEDLIBS += pollyjson.a
OpenPOWER on IntegriCloud