From: Hilko Bengen Date: Tue, 10 Mar 2020 19:06:39 +0000 (+0100) Subject: Make sure that generated ocaml-link.sh is used in out-of-tree builds X-Git-Tag: archive/raspbian/1%1.44.0-1+rpi1~1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d5d6661ac63976421f67488f95fe140747c033b6;p=libguestfs.git Make sure that generated ocaml-link.sh is used in out-of-tree builds Gbp-Pq: Name 0017-Make-sure-that-generated-ocaml-link.sh-is-used-in-ou.patch --- diff --git a/common/mlpcre/Makefile.am b/common/mlpcre/Makefile.am index 1e0b7795..9d3c482a 100644 --- a/common/mlpcre/Makefile.am +++ b/common/mlpcre/Makefile.am @@ -105,9 +105,9 @@ OCAMLLINKFLAGS = $(LINK_CUSTOM_OCAMLC_ONLY) pcre_tests_DEPENDENCIES = \ $(pcre_tests_THEOBJECTS) \ $(MLPCRE_CMA) \ - $(top_srcdir)/ocaml-link.sh + $(top_builddir)/ocaml-link.sh pcre_tests_LINK = \ - $(top_srcdir)/ocaml-link.sh \ + $(top_builddir)/ocaml-link.sh \ -cclib '-lutils -lpcre -lgnu' -- \ $(OCAMLFIND) $(BEST) $(OCAMLFLAGS) $(OCAMLLINKFLAGS) \ $(OCAMLPACKAGES) $(OCAMLPACKAGES_TESTS) \ diff --git a/common/mlstdutils/Makefile.am b/common/mlstdutils/Makefile.am index 3b2d1462..0aacc97b 100644 --- a/common/mlstdutils/Makefile.am +++ b/common/mlstdutils/Makefile.am @@ -129,9 +129,9 @@ OCAMLLINKFLAGS = $(LINK_CUSTOM_OCAMLC_ONLY) std_utils_tests_DEPENDENCIES = \ $(std_utils_tests_THEOBJECTS) \ $(MLSTDUTILS_CMA) \ - $(top_srcdir)/ocaml-link.sh + $(top_builddir)/ocaml-link.sh std_utils_tests_LINK = \ - $(top_srcdir)/ocaml-link.sh -- \ + $(top_builddir)/ocaml-link.sh -- \ $(OCAMLFIND) $(BEST) $(OCAMLFLAGS) $(OCAMLLINKFLAGS) \ $(OCAMLPACKAGES) $(OCAMLPACKAGES_TESTS) \ $(std_utils_tests_THEOBJECTS) -o $@ diff --git a/common/mltools/Makefile.am b/common/mltools/Makefile.am index aea2dce9..2ab32984 100644 --- a/common/mltools/Makefile.am +++ b/common/mltools/Makefile.am @@ -265,9 +265,9 @@ tools_utils_tests_DEPENDENCIES = \ ../mlgettext/mlgettext.$(MLARCHIVE) \ ../mlpcre/mlpcre.$(MLARCHIVE) \ $(MLTOOLS_CMA) \ - $(top_srcdir)/ocaml-link.sh + $(top_builddir)/ocaml-link.sh tools_utils_tests_LINK = \ - $(top_srcdir)/ocaml-link.sh -cclib '-lutils $(LIBXML2_LIBS) -lgnu' -- \ + $(top_builddir)/ocaml-link.sh -cclib '-lutils $(LIBXML2_LIBS) -lgnu' -- \ $(OCAMLFIND) $(BEST) $(OCAMLFLAGS) $(OCAMLLINKFLAGS) \ $(OCAMLPACKAGES) $(OCAMLPACKAGES_TESTS) \ $(tools_utils_tests_THEOBJECTS) -o $@ @@ -278,9 +278,9 @@ getopt_tests_DEPENDENCIES = \ ../mlgettext/mlgettext.$(MLARCHIVE) \ ../mlpcre/mlpcre.$(MLARCHIVE) \ $(MLTOOLS_CMA) \ - $(top_srcdir)/ocaml-link.sh + $(top_builddir)/ocaml-link.sh getopt_tests_LINK = \ - $(top_srcdir)/ocaml-link.sh -cclib '-lutils $(LIBXML2_LIBS) -lgnu' -- \ + $(top_builddir)/ocaml-link.sh -cclib '-lutils $(LIBXML2_LIBS) -lgnu' -- \ $(OCAMLFIND) $(BEST) $(OCAMLFLAGS) $(OCAMLLINKFLAGS) \ $(OCAMLPACKAGES) $(OCAMLPACKAGES_TESTS) \ $(getopt_tests_THEOBJECTS) -o $@ @@ -291,9 +291,9 @@ JSON_tests_DEPENDENCIES = \ ../mlgettext/mlgettext.$(MLARCHIVE) \ ../mlpcre/mlpcre.$(MLARCHIVE) \ $(MLTOOLS_CMA) \ - $(top_srcdir)/ocaml-link.sh + $(top_builddir)/ocaml-link.sh JSON_tests_LINK = \ - $(top_srcdir)/ocaml-link.sh -- \ + $(top_builddir)/ocaml-link.sh -- \ $(OCAMLFIND) $(BEST) $(OCAMLFLAGS) $(OCAMLLINKFLAGS) \ $(OCAMLPACKAGES) $(OCAMLPACKAGES_TESTS) \ $(JSON_tests_THEOBJECTS) -o $@ @@ -304,9 +304,9 @@ JSON_parser_tests_DEPENDENCIES = \ ../mlgettext/mlgettext.$(MLARCHIVE) \ ../mlpcre/mlpcre.$(MLARCHIVE) \ $(MLTOOLS_CMA) \ - $(top_srcdir)/ocaml-link.sh + $(top_builddir)/ocaml-link.sh JSON_parser_tests_LINK = \ - $(top_srcdir)/ocaml-link.sh -cclib '$(OCAMLCLIBS)' -- \ + $(top_builddir)/ocaml-link.sh -cclib '$(OCAMLCLIBS)' -- \ $(OCAMLFIND) $(BEST) $(OCAMLFLAGS) $(OCAMLLINKFLAGS) \ $(OCAMLPACKAGES) $(OCAMLPACKAGES_TESTS) \ $(JSON_parser_tests_THEOBJECTS) -o $@ @@ -317,9 +317,9 @@ machine_readable_tests_DEPENDENCIES = \ ../mlgettext/mlgettext.$(MLARCHIVE) \ ../mlpcre/mlpcre.$(MLARCHIVE) \ $(MLTOOLS_CMA) \ - $(top_srcdir)/ocaml-link.sh + $(top_builddir)/ocaml-link.sh machine_readable_tests_LINK = \ - $(top_srcdir)/ocaml-link.sh -cclib '-lutils -lgnu' -- \ + $(top_builddir)/ocaml-link.sh -cclib '-lutils -lgnu' -- \ $(OCAMLFIND) $(BEST) $(OCAMLFLAGS) $(OCAMLLINKFLAGS) \ $(OCAMLPACKAGES) $(OCAMLPACKAGES_TESTS) \ $(machine_readable_tests_THEOBJECTS) -o $@ @@ -330,9 +330,9 @@ tools_messages_tests_DEPENDENCIES = \ ../mlgettext/mlgettext.$(MLARCHIVE) \ ../mlpcre/mlpcre.$(MLARCHIVE) \ $(MLTOOLS_CMA) \ - $(top_srcdir)/ocaml-link.sh + $(top_builddir)/ocaml-link.sh tools_messages_tests_LINK = \ - $(top_srcdir)/ocaml-link.sh -cclib '-lutils -lgnu' -- \ + $(top_builddir)/ocaml-link.sh -cclib '-lutils -lgnu' -- \ $(OCAMLFIND) $(BEST) $(OCAMLFLAGS) $(OCAMLLINKFLAGS) \ $(OCAMLPACKAGES) $(OCAMLPACKAGES_TESTS) \ $(tools_messages_tests_THEOBJECTS) -o $@ diff --git a/common/mlutils/Makefile.am b/common/mlutils/Makefile.am index e86d7bb5..1adefd6d 100644 --- a/common/mlutils/Makefile.am +++ b/common/mlutils/Makefile.am @@ -127,9 +127,9 @@ c_utils_unit_tests_DEPENDENCIES = \ $(c_utils_unit_tests_THEOBJECTS) \ ../mlstdutils/mlstdutils.$(MLARCHIVE) \ mlcutils.$(MLARCHIVE) \ - $(top_srcdir)/ocaml-link.sh + $(top_builddir)/ocaml-link.sh c_utils_unit_tests_LINK = \ - $(top_srcdir)/ocaml-link.sh -cclib '-lutils -lgnu' -- \ + $(top_builddir)/ocaml-link.sh -cclib '-lutils -lgnu' -- \ $(OCAMLFIND) $(BEST) $(OCAMLFLAGS) \ $(OCAMLPACKAGES) -package oUnit \ $(OCAMLLINKFLAGS) \ diff --git a/common/mlvisit/Makefile.am b/common/mlvisit/Makefile.am index 6f093233..780ba2af 100644 --- a/common/mlvisit/Makefile.am +++ b/common/mlvisit/Makefile.am @@ -118,9 +118,9 @@ visit_tests_DEPENDENCIES = \ $(visit_tests_THEOBJECTS) \ ../mlutils/mlcutils.$(MLARCHIVE) \ $(MLVISIT_CMA) \ - $(top_srcdir)/ocaml-link.sh + $(top_builddir)/ocaml-link.sh visit_tests_LINK = \ - $(top_srcdir)/ocaml-link.sh \ + $(top_builddir)/ocaml-link.sh \ -cclib '-lvisit -lstructs -lutils $(LIBXML2_LIBS) -lgnu' -- \ $(OCAMLFIND) $(BEST) $(OCAMLFLAGS) $(OCAMLLINKFLAGS) \ $(OCAMLPACKAGES) $(OCAMLPACKAGES_TESTS) \