Bug 89963 - rss-glx ignores CFLAGS
Bug#: 89963 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: smithj@gentoo.org Reported By: estar@cs.tu-berlin.de
Component: Applications
URL: 
Summary: rss-glx ignores CFLAGS
Keywords:  
Status Whiteboard: 
Opened: 2005-04-21 12:49 0000
Description:   Opened: 2005-04-21 12:49 0000
When trying to emerge rss-glx, my CFLAGS were ignored, making gcc complain.

Reproducible: Always
Steps to Reproduce:
1. emerge rss-glx
Actual Results:  
# USE=-kde emerge rss-glx
<snip>
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --enable-sse --disable-3dnow --enable-sound
--bindir=/usr/lib/xscreensaver
--with-configdir=/usr/share/control-center/screensavers/ CFLAGS=-march=pentium-m
-O3 -pipe -fomit-frame-pointer -fno-pie
<snip>
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include
-I../../src    -g -Wall  -MT rsMath.o -MD -MP -MF ".deps/rsMath.Tpo" \
  -c -o rsMath.o `test -f 'rsMath.c' || echo './'`rsMath.c; \
then mv -f ".deps/rsMath.Tpo" ".deps/rsMath.Po"; \
else rm -f ".deps/rsMath.Tpo"; exit 1; \
fi
rsMath.c: In function `rsCPUDetect':
rsMath.c:39: error: PIC register `%ebx' clobbered in `asm'
make[3]: *** [rsMath.o] Error 1

Expected Results:  
rss-glx should have been built. (The error goes away if -fomit-frame-pointer is
passed to gcc, which it wasn't although it was in the CFLAGS passed to configure.)

I think the error is in configure.in, see also the attached patch which fixes it
for me. `emerge info` also attached.

------- Comment #1 From Ewgenij Starostin 2005-04-21 12:50:05 0000 -------
Created an attachment (id=56865) [details]
output of emerge info

------- Comment #2 From Ewgenij Starostin 2005-04-21 12:50:59 0000 -------
Created an attachment (id=56866) [details]
Patch to configure.in.

------- Comment #3 From Jonathan Smith 2005-06-25 06:28:58 0000 -------
(In reply to comment #1)
> Created an attachment (id=56865) [edit] [details]
> output of emerge info

just fyi: `emerge --info` should be pasted inline

------- Comment #4 From Jonathan Smith 2005-06-25 09:37:17 0000 -------
fixed in 0.8.0-r1... thanks