Fix compilation on 64-bit architectures 82/249682/1 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_9.0_unified accepted/tizen_unified tizen tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 tizen_9.0 accepted/tizen/6.5/unified/20211029.014716 accepted/tizen/7.0/unified/20221110.060602 accepted/tizen/7.0/unified/hotfix/20221116.111118 accepted/tizen/8.0/unified/20231005.095207 accepted/tizen/9.0/unified/20241030.232345 accepted/tizen/unified/20201216.220022 accepted/tizen/unified/20201218.124447 submit/tizen/20201216.071710 submit/tizen/20201217.075359 submit/tizen/20201217.103258 submit/tizen_6.5/20211028.163501 tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release tizen_9.0_m2_release
authorMateusz Majewski <m.majewski2@samsung.com>
Wed, 16 Dec 2020 06:47:12 +0000 (07:47 +0100)
committerMateusz Majewski <m.majewski2@samsung.com>
Wed, 16 Dec 2020 06:47:12 +0000 (07:47 +0100)
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

packaging/lz4.spec

index 7918fba..fbbd41f 100644 (file)
@@ -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