Re: [OT] change default compiler version to build an rpm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2006-05-04 at 23:57 +0200, Gianluca Cecchi wrote:
> On Thu, 04 May 2006 14:28:30 -0700 Michael A. Peters wrote:
> >in %build section:
> >try export CC=%{_bindir}/gcc32
> >or
> >make CC=%{_bindir}/gcc32
> 
> either setting in %build
> %configure CC=%{_bindir}/gcc32
> %{__make} CC=%{_bindir}/gcc32
> 
> or
> export CC=%{_bindir}/gcc32
> 
> I get this during configure:
> 
> checking for i686-redhat-linux-gnu-gcc... /usr/bin/gcc32
> checking for C compiler default output file name... configure: error:
> C compiler cannot create executables
> See `config.log' for more details.
> 
> In config.log I have:
> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info --enable
> -shared --enable-threads=posix --disable-checking --with-system-zlib
> --enable-__cxa_atexit --enable-la
> nguages=c,c++,f77 --disable-libgcj --host=i386-redhat-linux
> Thread model: posix
> gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-55.fc5)
> configure:2076: $? = 0
> configure:2078: /usr/bin/gcc32 -V </dev/null >&5
> gcc32: argument to `-V' is missing
> configure:2081: $? = 1
> configure:2104: checking for C compiler default output file name
> configure:2107: /usr/bin/gcc32 -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protect
> or --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
> -fasynchronous-unwind-tables   conftest.c
>   >&5
> cc1: invalid option `tune=generic'
> cc1: unrecognized option `-fstack-protector'
> cc1: invalid parameter `ssp-buffer-size'
> configure:2110: $? = 1
> 
> Do I have also to change CFLAGS...?
> 

Yes - rpm sets CFLAGS to %optflags
So you can define the optflags macro in the spec file to flags that work
with gcc32.

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux