[rtems-source-builder commit] sb: Statically link zlib for GCC on MinGW

Sebastian Huber sebh at rtems.org
Thu Dec 4 08:03:30 UTC 2014


Module:    rtems-source-builder
Branch:    master
Commit:    dd51e39fe47ff647d7237ea4b83a007d69adfc1e
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=dd51e39fe47ff647d7237ea4b83a007d69adfc1e

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Dec  2 10:01:17 2014 +0100

sb: Statically link zlib for GCC on MinGW

---

 source-builder/config/gcc-common-1.cfg | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/source-builder/config/gcc-common-1.cfg b/source-builder/config/gcc-common-1.cfg
index df24f69..700cc87 100644
--- a/source-builder/config/gcc-common-1.cfg
+++ b/source-builder/config/gcc-common-1.cfg
@@ -119,6 +119,12 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
   languages="$languages,objc"
 %endif
 
+%if %{_host_os} == mingw32
+  zlib_option=""
+%else
+  zlib_option="--with-system-zlib"
+%endif
+
   %{host_build_flags}
 
   ../${source_dir_gcc}/configure \
@@ -136,7 +142,7 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
     --disable-libstdcxx-pch \
     --with-gnu-as --with-gnu-ld --verbose \
     --with-newlib \
-    --with-system-zlib \
+    "$zlib_option" \
     --disable-nls --without-included-gettext \
     --disable-win32-registry \
     --enable-version-specific-runtime-libs \



More information about the vc mailing list