[PATCH] Don't claim C++ compiler exists if it's not installed
Richard W.M. Jones
rjones at redhat.com
Sat Jan 24 18:10:04 UTC 2009
Small update to this patch: With CXX= configure things that the native
C++ compiler is suitable. The patch is updated so that we set
ac_cv_prog_CXX=no to avoid this.
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
-------------- next part --------------
? .build-43-6.fc11.log
? mingw32-filesystem-43
? mingw32-filesystem-43-6.fc11.src.rpm
? noarch
Index: mingw32-filesystem.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-filesystem/devel/mingw32-filesystem.spec,v
retrieving revision 1.10
diff -u -r1.10 mingw32-filesystem.spec
--- mingw32-filesystem.spec 14 Jan 2009 10:20:03 -0000 1.10
+++ mingw32-filesystem.spec 24 Jan 2009 18:07:20 -0000
@@ -1,8 +1,8 @@
%define debug_package %{nil}
Name: mingw32-filesystem
-Version: 42
-Release: 1%{?dist}
+Version: 43
+Release: 6%{?dist}
Summary: MinGW base filesystem and environment
Group: Development/Libraries
@@ -145,6 +145,10 @@
%changelog
+* Sat Jan 24 2009 Richard W.M. Jones <rjones at redhat.com> - 43-6
+- Don't claim C++ compiler exists if it's not installed, as this
+ breaks autoconf and (in particular) libtool.
+
* Wed Jan 14 2009 Richard W.M. Jones <rjones at redhat.com> - 42-1
- Add pseudo-provides secur32.dll
Index: mingw32-macros.mingw32
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-filesystem/devel/mingw32-macros.mingw32,v
retrieving revision 1.6
diff -u -r1.6 mingw32-macros.mingw32
--- mingw32-macros.mingw32 18 Dec 2008 10:53:30 -0000 1.6
+++ mingw32-macros.mingw32 24 Jan 2009 18:07:20 -0000
@@ -55,16 +55,22 @@
%_mingw32_env HOST_CC=gcc; export HOST_CC; \
PKG_CONFIG_PATH="%{_mingw32_libdir}/pkgconfig"; export PKG_CONFIG_PATH; \
- CC="${MINGW32_CC:-%_mingw32_cc}"; export CC; \
- CXX="${MINGW32_CXX:-%_mingw32_cxx}"; export CXX; \
- CFLAGS="${MINGW32_CFLAGS:-%_mingw32_cflags}"; export CFLAGS; \
- CXXFLAGS="${MINGW32_CXXFLAGS:-%_mingw32_cflags}"; export CXXFLAGS; \
_PREFIX="%{_bindir}/%{_mingw32_target}-"; \
- for i in `ls ${_PREFIX}*|egrep -v "gcc-"`; do \
+ for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'`; do \
x=`echo $i|sed "s,${_PREFIX},,"|tr "a-z+-" "A-ZX_"`; \
declare -x $x="$i" ; export $x; \
done; \
unset _PREFIX; \
+ CC="${MINGW32_CC:-%_mingw32_cc}"; export CC; \
+ CFLAGS="${MINGW32_CFLAGS:-%_mingw32_cflags}"; export CFLAGS; \
+ if [ -x "%{_bindir}/%{_mingw32_cxx}" ]; then \
+ CXX="${MINGW32_CXX:-%_mingw32_cxx}"; export CXX; \
+ CXXFLAGS="${MINGW32_CXXFLAGS:-%_mingw32_cflags}"; export CXXFLAGS; \
+ else \
+ CXX=; export CXX; \
+ ac_cv_prog_CXX=no; export ac_cv_prog_CXX; \
+ CXXFLAGS=; export CXXFLAGS; \
+ fi; \
for i in `ls %{_mingw32_bindir}/*|grep -- "-config\$"` ; do \
x=`basename $i|tr "a-z+-" "A-ZX_"`; \
declare -x $x="$i" ; export $x; \
More information about the mingw
mailing list