From: Mateusz Majewski Date: Wed, 16 Dec 2020 06:47:12 +0000 (+0100) Subject: Fix compilation on 64-bit architectures X-Git-Tag: accepted/tizen/6.5/unified/20211029.014716^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_7.0;p=platform%2Fupstream%2Flz4.git Fix compilation on 64-bit architectures RPM expects the libraries to end up in /usr/lib64 then, but the Makefile puts them in /usr/lib regardless of the architecture. Thankfully, we can select the location (which also is used in the pkg-config file). Change-Id: I87496a783ab602770df5619ca57a3295756c0ae4 --- diff --git a/packaging/lz4.spec b/packaging/lz4.spec index 7918fba..fbbd41f 100644 --- a/packaging/lz4.spec +++ b/packaging/lz4.spec @@ -42,7 +42,7 @@ cp %{SOURCE1} . %__make BUILD_STATIC=0 %{?_smp_mflags} %install -%__make install BUILD_STATIC=0 DESTDIR=%{?buildroot} PREFIX=/usr INSTALL="%{__install} -p" +%__make install BUILD_STATIC=0 DESTDIR=%{?buildroot} PREFIX=/usr LIBDIR=%{_libdir} INSTALL="%{__install} -p" rm %{?buildroot}%{_datadir}/man/man1/lz4.1 rm %{?buildroot}%{_datadir}/man/man1/lz4c.1 rm %{?buildroot}%{_datadir}/man/man1/lz4cat.1