]> git.pld-linux.org Git - packages/dalc.git/commitdiff
- if it possible map %%{__cc} to %%{__cxx} in the same way as in mozilla.spec.
authorkloczek <kloczek@pld-linux.org>
Tue, 21 May 2002 09:31:10 +0000 (09:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dalc.spec -> 1.13

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.134823 seconds and 4 git commands to generate.