Use configure --disable-static
We used to first build the static library and then remove it with rm afterwards. This change avoids building the unwanted static library in the first place.
This commit is contained in:
parent
b99c0b5a0b
commit
23354dc397
@ -49,7 +49,7 @@ you to develop applications that use the libsoup library.
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure
|
||||
%configure --disable-static
|
||||
|
||||
# Omit unused direct shared library dependencies.
|
||||
sed --in-place --expression 's! -shared ! -Wl,--as-needed\0!g' libtool
|
||||
@ -60,7 +60,6 @@ make %{?_smp_mflags}
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
|
||||
|
||||
%find_lang libsoup
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user