[OCaml] PR5595: Pass LDFLAGS to tests via -cclib.
authorPeter Zotov <whitequark@whitequark.org>
Tue, 28 Oct 2014 23:31:13 +0000 (23:31 +0000)
committerPeter Zotov <whitequark@whitequark.org>
Tue, 28 Oct 2014 23:31:13 +0000 (23:31 +0000)
llvm-svn: 220832

llvm/test/Makefile

index 0062669..d2aa210 100644 (file)
@@ -129,7 +129,7 @@ lit.site.cfg: FORCE
        @$(ECHOPATH) s=@PYTHON_EXECUTABLE@=$(PYTHON)=g >> lit.tmp
        @$(ECHOPATH) s=@OCAMLC@=$(OCAMLC)=g >> lit.tmp
        @$(ECHOPATH) s=@OCAMLOPT@=$(OCAMLOPT)=g >> lit.tmp
-       @$(ECHOPATH) s=@OCAMLFLAGS@=-cclib -lstdc++ -cclib -L$(LibDir) -I $(LibDir)/ocaml=g >> lit.tmp
+       @$(ECHOPATH) s=@OCAMLFLAGS@=-cclib -lstdc++ -cclib -L$(LibDir) -I $(LibDir)/ocaml $(addprefix -cclib ,$(LDFLAGS))=g >> lit.tmp
        @$(ECHOPATH) s=@GO_EXECUTABLE@=$(GO)=g >> lit.tmp
        @$(ECHOPATH) s!@HOST_CC@!$(CC)!g >> lit.tmp
        @$(ECHOPATH) s!@HOST_CXX@!$(CXX)!g >> lit.tmp