From 8131b73341b99b955242768d96ac74390d926e783e28b03ede2e2dea927a58a3 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 10 Dec 2018 17:28:55 +0000 Subject: [PATCH] - Use lz4hc.h from bundled copy, not the system. OBS-URL: https://build.opensuse.org/package/show/filesystems/erofs-utils?expand=0&rev=2 --- erofs-utils.changes | 5 +++++ erofs-utils.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/erofs-utils.changes b/erofs-utils.changes index 89136ef..65610b2 100644 --- a/erofs-utils.changes +++ b/erofs-utils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Dec 10 10:11:43 UTC 2018 - Jan Engelhardt + +- Use lz4hc.h from bundled copy, not the system. + ------------------------------------------------------------------- Mon Nov 19 20:57:48 UTC 2018 - Jan Engelhardt diff --git a/erofs-utils.spec b/erofs-utils.spec index f46072c..6588ce3 100644 --- a/erofs-utils.spec +++ b/erofs-utils.spec @@ -30,7 +30,6 @@ Patch2: no-static.diff Patch3: no-date.diff BuildRequires: autoconf >= 2.69 BuildRequires: automake -BuildRequires: liblz4-devel BuildRequires: libtool BuildRequires: xz BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -58,6 +57,7 @@ pushd lz4-1.8.3/ make %{?_smp_mflags} CFLAGS="%{optflags}" V=1 popd autoreconf -fiv +export CPPFLAGS="-I$PWD/lz4-1.8.3/lib" %configure --disable-static --with-lz4="$PWD/lz4-1.8.3/lib" --bindir="%_sbindir" make %{?_smp_mflags}