Fix libdir for riscv64

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2022-09-24 11:04:32 +03:00
parent 3ec80cb1dd
commit 27ec531acd
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 3 additions and 6 deletions

View File

@ -68,12 +68,7 @@ developing applications that use %{name}.
# https://gitlab.haskell.org/ghc/ghc/-/issues/20051
# https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/283
# We need to get these fixes into Fedora before we can reeanble them.
%configure \
%ifarch riscv64
--libdir=%{_libdir} \
%endif
--disable-static \
--disable-exec-static-tramp
%configure --disable-static --disable-exec-static-tramp
%make_build
%check
@ -115,6 +110,8 @@ install -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_includedir}/ffitarget.h
# Print the content of buildroot
find $RPM_BUILD_ROOT
mv -v ${RPM_BUILD_ROOT}%{_libdir}/lp64d/* ${RPM_BUILD_ROOT}%{_libdir}/
rm -rf ${RPM_BUILD_ROOT}%{_libdir}/lp64d
%ldconfig_scriptlets