Opened 16 years ago
Last modified 14 years ago
#876 new Defect
configure --enable-bitness=32 doesn't work
Reported by: | Nicolas | Owned by: | Eric Korpela |
---|---|---|---|
Priority: | Minor | Milestone: | Undetermined |
Component: | Client - Build | Version: | |
Keywords: | Cc: |
Description
I tried to compile BOINC API for 32-bit Linux, being on a 64-bit Linux machine. Using configure --enable-bitness=32
doesn't work; it compiles 64-bit code anyway (I didn't let make
run to completion; I aborted it as soon as I saw a few files being compiled without any 32-bit flag).
I found the problem is the SAH_OPTION_BITNESS
macro (defined in m4/sah_select_bitness.m4
) adds -m32
to CFLAGS
, but not to CXXFLAGS
, so C code would be compiled as 32-bit but C++ code wouldn't.
Another minor bug: if the macro detects -m32
works, it prints "Selecting 32 bit model... -m32" but then prints "failed" on the next line anyway. The printing of "failed" is done always, instead of in the 'else' clause of checking if -m32
works.
A belated happy birthday for this bug report!