On 7/5/10 9:36 AM, kun...@cms.hu-berlin.de wrote:

> Bash Version: 4.1
> Patch Level: 0
> Release Status: release
> 
> Description:
>       compiling bash for 64bit architectures fails due to mkbuiltins.o is 
> being compiled as 32bit binary
>       the CFLAG -m64 is'nt passed correctly to the submake
> 
> Repeat-By:
>       env LDFLAGS="-L/usr/lib/64" CFLAGS="-m64" ./configure
>       gmake

Try adding CFLAGS_FOR_BUILD=-m64 to the set of assignments preceding
`./configure'.  CFLAGS is the set of flags used to build bash, possibly
in a cross-compilation environment.  CFLAGS_FOR_BUILD is the set of flags
native to the machine, used to build tools used by the build process
itself, and should not be part of any cross-compilation flags.

If that doesn't work, let me know.  I suppose I could set CFLAGS_FOR_BUILD
to CFLAGS if $cross_compiling != "yes", but that's not how it is right now.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to