2009/9/8 Juanjo <juanjose.garciarip...@googlemail.com>:
>
> On Sep 8, 2:36 pm, David Kirkby <david.kir...@onetel.net> wrote:
>> I will be impossible to convince!!!
>> I have no problem accepting the *compiler* needs -m64. That option
>> tells the *compiler* to create 64-bit object files. But once the
>> linker is asked to link the object files, it should be able to work
>> out whether the executable to be created is 32-bit or 64-bit based on
>> the type of object files it is being asked to link.
>
> Well, I am amazed that you fail to refuse clear evidence. Run former
> ECL's autoconf with CFLAGS=-m64 and LDFLAGS=. GCC is then used without
> -m64 to link with libmpir and it fails to work with that libmpir you
> built in 64 bits mode. Use CFLAGS=-m64 and LDFLAGS=-m64, and now GCC
> gets also the -m64 flag because it is used as a linker and the
> configuration works. Similar problems happened during ECL's build. I
> really do not have a problem if you fail to admit that this happens.
> ECL now inserts the -m64 flag whenever it invokes gcc for 64 bits
> binaries -- compiling AND linking -- but you may face similar problems
> with other libraries.


If you note in a former message, I said I believed ecl was not
preserving CFLAGS properly. You said it was. I did not think much more
of this, but now things are starting to become clearer to me. I am not
in a position to test this now, so this is just a guess.

Clearly if CFLAGS is set to -m64, but GCC does not compile files with
-m64, then perhaps CFLAGS is not being preserved properly, which is
what I suspected before.

My understanding is that CFLAGS should be flags passed to the
compiler, and LDFLAGS should be flags passed to the linker.

If CFLAGS is not being passed to the compiler (which is what I thought
before), and LDFLAGS is passed to the compiler, then this could
explain why you need to set LDFLAGS.

But that is not how things are supposed to be. That suggests to me the
configuration is possibly broken in some way.

Dave

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to