]> git.pld-linux.org Git - packages/TeXmacs.git/commitdiff
- check gcc versiona and accordng to it apply CXX flags , or not
authorfilon <filon@sokrates.mimuw.edu.pl>
Tue, 12 Feb 2002 06:18:07 +0000 (06:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    TeXmacs.spec -> 1.16

TeXmacs.spec

index d55cc7586f98945591e8307b1fbe03c871df9ed0..ed1588469df011a7133a0f3b5717ce949130446f 100644 (file)
@@ -29,6 +29,8 @@ BuildRequires:        libstdc++-devel
 Requires:      tetex
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define         _gcc_ver        %(%{__cc} --version | cut -b 1)
+
 %description
 GNU TeXmacs is a free what-you-see-is-what-you-get mathematical text
 editor, which was both inspired by TeX and GNU Emacs. The program
@@ -64,10 +66,13 @@ autoconf
 cp -f /usr/share/automake/config.* .
 %configure
 
-# %{__make} CXXFLAGS="%{rpmcflags} -fno-exceptions -fno-rtti -fno-implicit-templates"
-# causes SIGSEV on gcc3
-
+# adding this CXXFLAGS causes gcc3 SIGSEV, so use it only with gcc2.x
+%if %{_gcc_ver} == 2
+%{__make} CXXFLAGS="%{rpmcflags} -fno-exceptions -fno-rtti -fno-implicit-templates"
+%endif
+%if %{_gcc_ver} == 3
 %{__make}
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.026201 seconds and 4 git commands to generate.