[OT] change default compiler version to build an rpm

Gianluca Cecchi gianluca.cecchi at gmail.com
Thu May 4 20:29:19 UTC 2006


On my FC5 system I have problems running rpmbuild for a program with
default gcc that is  4.1.0.
I have the compat-gcc-32 package installed on my system.
Getting the source tgz file, setting CC with
export CC=gcc32
and then running configure and make it works and I can compile the
program, but I am not able to replicate this in spec file for
rpmbuild.

So I'm trying to change compiler settings from gcc to gcc32.
I added for dependency into the spec file the line
BuildRequires:  compat-gcc-32

but I'm not able to have the gcc32 compiler set up.
I tried something like
%define %{__cc} gcc32
before the prep and build phases, but in
 %configure step in build phase
I see that the detected compiler is gcc and not gcc32.
Any hints and pointers? Already sent to rpm-list too.
Thanks in advance,
Gianluca




More information about the fedora-devel-list mailing list