]> git.pld-linux.org Git - packages/dalc.git/blobdiff - dalc.spec
- if it possible map %%{__cc} to %%{__cxx} in the same way as in mozilla.spec.
[packages/dalc.git] / dalc.spec
index f0674294277ab2acf566f521fda38e108fc55cee..3c5448977d6d7d1dd57c3f61cfd2bc34a0397f02 100644 (file)
--- a/dalc.spec
+++ b/dalc.spec
@@ -13,7 +13,10 @@ BuildRequires:       libtool
 BuildRequires: ncurses-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                __cxx           %{__cc}
+%define                _gcc_ver        %(%{__cc} -dumpversion | cut -b 1)
+%if %{_gcc_ver} == 2
+%define                __cxx           "%{__cc}"
+%endif
 
 %description
 Dalc is designed to be both powerful and easy to use at the same time.
This page took 0.256132 seconds and 4 git commands to generate.