sb: Statically link zlib for GCC on MinGW

This commit is contained in:
Sebastian Huber 2014-12-02 10:01:17 +01:00
parent 9a57c1059c
commit dd51e39fe4

View File

@ -119,6 +119,12 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
languages="$languages,objc" languages="$languages,objc"
%endif %endif
%if %{_host_os} == mingw32
zlib_option=""
%else
zlib_option="--with-system-zlib"
%endif
%{host_build_flags} %{host_build_flags}
../${source_dir_gcc}/configure \ ../${source_dir_gcc}/configure \
@ -136,7 +142,7 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
--disable-libstdcxx-pch \ --disable-libstdcxx-pch \
--with-gnu-as --with-gnu-ld --verbose \ --with-gnu-as --with-gnu-ld --verbose \
--with-newlib \ --with-newlib \
--with-system-zlib \ "$zlib_option" \
--disable-nls --without-included-gettext \ --disable-nls --without-included-gettext \
--disable-win32-registry \ --disable-win32-registry \
--enable-version-specific-runtime-libs \ --enable-version-specific-runtime-libs \