nbdkit/0001-common-bitmaps-Fix-tests-when-srcdir-builddir.patch
Richard W.M. Jones 8233ecfd32 Build into a subdirectory rather than the package source directory
This requires some upstream fixes for srcdir != builddir.
2024-01-23 14:46:17 +00:00

25 lines
747 B
Diff

From 93a1538808ac7f9788336a7e35168d851e8b2c72 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Tue, 23 Jan 2024 13:24:48 +0000
Subject: [PATCH 1/2] common/bitmaps: Fix tests when srcdir != builddir
---
common/bitmap/Makefile.am | 1 +
1 file changed, 1 insertion(+)
diff --git a/common/bitmap/Makefile.am b/common/bitmap/Makefile.am
index 3b7f4b44f..93ca1ee43 100644
--- a/common/bitmap/Makefile.am
+++ b/common/bitmap/Makefile.am
@@ -52,6 +52,7 @@ check_PROGRAMS = test-bitmap
test_bitmap_SOURCES = test-bitmap.c bitmap.c bitmap.h
test_bitmap_CPPFLAGS = \
-I$(top_srcdir)/include \
+ -I$(top_builddir)/include \
-I$(top_srcdir)/common/include \
$(NULL)
test_bitmap_CFLAGS = $(WARNINGS_CFLAGS)
--
2.43.0