1 |
On 6/13/06, Kevin O'Gorman <kogorman@×××××.com> wrote: |
2 |
> On 6/13/06, Richard Fish <bigfish@××××××××××.org> wrote: |
3 |
> |
4 |
> > On 6/13/06, Kevin O'Gorman <kogorman@×××××.com> wrote: |
5 |
> > > checking for gcc... gcc |
6 |
> > > checking whether the C compiler (gcc -O2 -march=pentium4 |
7 |
> > > -fomit-frame-pointer -pipe -mfpmath=sse -msse2 -mmmx -fPIC -Wl,-O1 |
8 |
> > > -ldl-Wl,-O1) works... no |
9 |
> > |
10 |
> > Looks like CFLAGS and LDFLAGS have gotten combined somehow. |
11 |
> > |
12 |
> > What does emerge --info show? Also post the output of "env | grep -e |
13 |
> > CFLAGS -e CXXFLAGS -e LDFLAGS". |
14 |
> |
15 |
> |
16 |
> That one comes up empty. There are no FLAGs in my environment. |
17 |
|
18 |
Well this is a bit confusing, because the command that configure uses |
19 |
for the compiler test is: |
20 |
|
21 |
${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS |
22 |
conftest.$ac_ext $LIBS |
23 |
|
24 |
The ebuild only adds the -fPIC option, and the "-Wl,-O1 -ldl-Wl,-O1" |
25 |
stuff doesn't show up anywhere in the glib sources. So the only place |
26 |
that could come from is the environment... |
27 |
|
28 |
We didn't check CPPFLAGS, do you have that set by chance? |
29 |
|
30 |
What does "locate config.site" report? (or "find / -name config.site" |
31 |
if you don't use slocate). It should come back with nothing... |
32 |
|
33 |
Just for comparison, when I build glib-1.2, I get: |
34 |
|
35 |
checking whether the C compiler (gcc -march=pentium4 -Os |
36 |
-fomit-frame-pointer -pipe -fweb -fPIC ) works... yes |
37 |
|
38 |
and my CFLAGS are set to |
39 |
|
40 |
CFLAGS="-march=pentium4 -Os -fomit-frame-pointer -pipe -fweb" |
41 |
|
42 |
So you can see the ebuild adds -fPIC option, and nothing else should |
43 |
be sneaking in... |
44 |
|
45 |
-Richard |
46 |
-- |
47 |
gentoo-user@g.o mailing list |