Added configurable options for the Linker and Archiver.
[oota-llvm.git] / Makefile.common
index c13ca250b0e6e896377c2f088aff075bbd1c2bf6..0197af2226028ea0c170e348e27719623662e243 100644 (file)
@@ -234,7 +234,7 @@ endif
 
 
 # Create one .o file from a bunch of .o files...
-Relink = ld -r
+Relink = ${LD} -r
 
 # MakeSO - Create a .so file from a .o files...
 MakeSO   := $(CXX) $(MakeSharedObjectOption)
@@ -246,7 +246,7 @@ Depend   := $(CXX) -MM -I$(LEVEL)/include -I$(PROJ_INCLUDE) $(CPPFLAGS)
 DependC  := $(CC)  -MM -I$(LEVEL)/include -I$(PROJ_INCLUDE) $(CPPFLAGS) 
 
 # Archive a bunch of .o files into a .a file...
-AR       = ar cq 
+AR       = ${AR_PATH} cq 
 
 #----------------------------------------------------------