nbdkit: Fix build after S moved into UNPACKDIR

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2025-07-01 00:05:51 -07:00
parent 040ba69712
commit b29ce87bb4
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -14,15 +14,14 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
plugins/cc/Makefile.am | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/plugins/cc/Makefile.am b/plugins/cc/Makefile.am
index df8b5d15..80586a17 100644
--- a/plugins/cc/Makefile.am
+++ b/plugins/cc/Makefile.am
@@ -44,9 +44,12 @@ nbdkit_cc_plugin_la_SOURCES = \
@@ -44,9 +44,13 @@ nbdkit_cc_plugin_la_SOURCES = \
$(top_srcdir)/include/nbdkit-plugin.h \
$(NULL)
+workdir := $(shell dirname $(abs_top_builddir))
+workdir1 := $(shell dirname $(abs_top_builddir))
+workdir := $(shell dirname $(workdir1))
+cc_no_sysroot := $(shell echo \"$(CC)\"|sed -e 's#$(workdir)#<WORKDIR>#g')
+cflags_no_sysroot := $(shell echo \"$(CFLAGS)\"|sed -e 's#$(workdir)#<WORKDIR>#g')
nbdkit_cc_plugin_la_CPPFLAGS = \
@ -33,6 +32,3 @@ index df8b5d15..80586a17 100644
-I$(top_srcdir)/include \
-I$(top_builddir)/include \
-I$(top_srcdir)/common/include \
--
2.40.1