bare/libusb: Fix the configuration and add a hash

Updates #4014
This commit is contained in:
Chris Johns 2020-08-11 11:36:47 +10:00
parent 673f9ad5c0
commit 4da24fb490
2 changed files with 6 additions and 1 deletions

View File

@ -15,6 +15,9 @@ Name: libusb-%{libusb_version}-%{_host}-%{release}
%description %description
LibUSB for host %{_host}. LibUSB for host %{_host}.
%hash sha512 libusb-%{libusb_version}.tar.bz2 \
u8PXXLkfTmoCRUnCusOO6FrtqFKaRVP9NryOilwiPNieuVLtpx/MAHHWxsgYoGMdTMoIT+1p1Jhu7l3PmofWYg==
# #
# The Libuxb build instructions. We use 1.xx Release 1. # The Libuxb build instructions. We use 1.xx Release 1.
# #

View File

@ -33,8 +33,10 @@ URL: http://libusb.org/
cd libusb-%{libusb_version} cd libusb-%{libusb_version}
%if "%{_build}" != "%{_host}" %if "%{_build}" != "%{_host}"
CFLAGS_FOR_BUILD="-g -O2 -Wall" \ LIBUSB_CFLAGS_FOR_BUILD="-g -O2 -Wall"
%endif %endif
CFLAGS_FOR_BUILD=${LIBUSB_CFLAGS_FOR_BUILD} \
CFLAGS="$SB_CFLAGS" \ CFLAGS="$SB_CFLAGS" \
./configure \ ./configure \
--build=%{_build} --host=%{_host} \ --build=%{_build} --host=%{_host} \