[mingw-gcc: 19/36] Disable plugin support with a configure option

epienbro epienbro at fedoraproject.org
Tue Mar 6 19:19:58 UTC 2012


commit f4b98651f44e0e3ad2194b94a6ca4a8b2f927652
Author: Kalev Lember <kalev at smartlink.ee>
Date:   Tue May 10 14:11:00 2011 +0300

    Disable plugin support with a configure option
    
    Instead of removing the files in the %install section as was the case
    previously, it's cleaner to disable the plugin support in configure invocation.

 mingw32-gcc.spec |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/mingw32-gcc.spec b/mingw32-gcc.spec
index 284d1ed..c8fce12 100644
--- a/mingw32-gcc.spec
+++ b/mingw32-gcc.spec
@@ -2,7 +2,7 @@
 
 Name:           mingw32-gcc
 Version:        4.5.3
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        MinGW Windows cross-compiler (GCC) for C
 
 License:        GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions
@@ -132,6 +132,7 @@ CC="%{__cc} ${RPM_OPT_FLAGS}" \
   --with-gnu-as --with-gnu-ld --verbose \
   --without-newlib \
   --disable-multilib \
+  --disable-plugin \
   --enable-libgomp \
   --with-system-zlib \
   --disable-nls --without-included-gettext \
@@ -170,10 +171,6 @@ mv $RPM_BUILD_ROOT%{_bindir}/*.dll \
 # Don't want the *.la files.
 find $RPM_BUILD_ROOT -name '*.la' -delete
 
-# As of gcc 4.5.0, the plugin/ directory gets created on an i686 host
-# but not on x86_64. Excluding it from the package for now.
-rm -rf $RPM_BUILD_ROOT%{_libdir}/gcc/i686-pc-mingw32/%{version}/plugin/
-
 popd
 
 
@@ -279,6 +276,10 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Tue May 10 2011 Kalev Lember <kalev at smartlink.ee> - 4.5.3-2
+- Disable plugin support with a configure option, instead of deleting
+  the files in the install section
+
 * Sat Apr 30 2011 Kalev Lember <kalev at smartlink.ee> - 4.5.3-1
 - Update to 4.5.3
 


More information about the scm-commits mailing list