summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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