selinux X libxklavier recompilation
Jiri Cerny
jiri.cerny at epfl.ch
Fri Feb 3 13:01:08 UTC 2006
> >After some searching, I found that configure does not find -fPIC option of
> >gcc when run by rpmbuild. It finds this option if it is run directly from
> >the command line. The problem is actually that rpmbuild set environment
> >variable RPM_OPT_FLAGS. Value of this variable contains -mcpu switch, that
> >is deprecated by gcc, and warnings due to this option make the libxklavier
> >configure check for -fPIC fail. I changed -mcpu to -mtune on line 18 of
> >/usr/lib/rpmrc and everything works fine.
>
> That's strange. Can you paste the output of these commands, please?
>
> rpm -qa | grep rpm
> rpm --eval %{optflags}
> cat ~/.rpmrc
$ rpm -qa| grep rpm
rpm-build-4.4.2-15
rpm-libs-4.4.2-15
rpm-4.4.2-15
rpm-python-4.4.2-15
$ rpm -V rpm-build-4.4.2-15 rpm-libs-4.4.2-15
rpm-4.4.2-15 rpm-python-4.4.2-15
$ rpm --eval %{optflags}
-O2 -g -march=i386 -mcpu=i686
$ cat ~/.rpmrc
cat: /home/cerny/.rpmrc: není souborem ani adresářem
>
> I thought that `-mcpu' switch was changed in to `-mtune' in FC-3 or
> FC-4. In Rawhide I've got something like this:
-mcpu remains at least at line 18 of /usr/lib/rpm/rpmrc, as I (almost)
wrote in the previous email.
> [y4kk0 at X ~]$ rpm --eval %{optflags}
> -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386
> -mtune=pentium4 -fasynchronous-unwind-tables
I definitely do not get this.
Regards,
Jiri
--
Jiří Černý
École Polytechnique Féderale de Lausanne (EPFL)
Chair of Stochastic modeling (CMOS)
INR 031 - Station 14
CH-1015 Lausanne
phone: ++41-21-693 7534
fax: ++41-21-693 7545
e-mail: jiri.cerny at epfl.ch
More information about the test
mailing list