Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89963 - rss-glx ignores CFLAGS
Summary: rss-glx ignores CFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jonathan Smith (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-21 12:49 UTC by Ewgenij Starostin
Modified: 2005-06-25 09:37 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
output of emerge info (emerge_info,3.89 KB, text/plain)
2005-04-21 12:50 UTC, Ewgenij Starostin
Details
Patch to configure.in. (rss-glx-0.8.0-configure.in.patch,642 bytes, patch)
2005-04-21 12:50 UTC, Ewgenij Starostin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ewgenij Starostin 2005-04-21 12:49:12 UTC
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 Ewgenij Starostin 2005-04-21 12:50:05 UTC
Created attachment 56865 [details]
output of emerge info
Comment 2 Ewgenij Starostin 2005-04-21 12:50:59 UTC
Created attachment 56866 [details, diff]
Patch to configure.in.
Comment 3 Jonathan Smith (RETIRED) gentoo-dev 2005-06-25 06:28:58 UTC
(In reply to comment #1)
> Created an attachment (id=56865) [edit]
> output of emerge info

just fyi: `emerge --info` should be pasted inline
Comment 4 Jonathan Smith (RETIRED) gentoo-dev 2005-06-25 09:37:17 UTC
fixed in 0.8.0-r1... thanks