summaryrefslogtreecommitdiff
path: root/thin-provisioning-tools/0001-fix-build-with-testing-disabled.patch
blob: 4c1c1db3d42b1efc0e5166a5c1a6f38c8b74a6ca (plain)
    1 From 8d75be81120b9cf172c95d0153c5f845ed804234 Mon Sep 17 00:00:00 2001
    2 From: Adam Sampson <ats-github@offog.org>
    3 Date: Mon, 16 Oct 2017 13:07:36 +0100
    4 Subject: [functional-tests] fix build with testing disabled (#88)
    5 
    6 The rule for lib/libft.so is only enabled with --enable-testing,
    7 so the default target shouldn't depend unconditionally on it.
    8 With the default configure options, the build failed with:
    9 make: *** No rule to make target 'lib/libft.so', needed by 'all'.  Stop.
   10 ---
   11  Makefile.in | 7 ++++++-
   12  1 file changed, 6 insertions(+), 1 deletion(-)
   13 
   14 diff --git a/Makefile.in b/Makefile.in
   15 index e745739..02b75dd 100644
   16 --- a/Makefile.in
   17 +++ b/Makefile.in
   18 @@ -21,8 +21,13 @@ V=@
   19  PROGRAMS=\
   20  	bin/pdata_tools
   21  
   22 +ifeq ("@TESTING@", "yes")
   23 +TESTLIBS=\
   24 +	lib/libft.so
   25 +endif
   26 +
   27  .PHONY: all
   28 -all: $(PROGRAMS) lib/libft.so
   29 +all: $(PROGRAMS) $(TESTLIBS)
   30  
   31  SOURCE=\
   32  	base/output_file_requirements.cc \
   33 -- 
   34 cgit v1.1-22-g1649

Generated by cgit