Problem with configure compiling 64-bit under Solaris 10
Volker Lendecke
Volker.Lendecke at SerNet.DE
Mon Mar 16 12:08:28 GMT 2009
On Sun, Mar 15, 2009 at 01:37:32PM -0400, John Center wrote:
> There is a problem with configure when trying to compile 64-bit binaries
> on Solaris 10 using Sun Studio 12. When some of the tests are run, the
> CFLAGS variable is completely replaced with one that contains an option
> for testing. For example, when testing for compiler warnings, CFLAGS is
> replaced with Werror_FLAGS, which can contain -Werror, -w2 or -errwarn.
> This fails in 64-bit mode because the appropriate option, "-m64", is
> not included. Without this flag, conftest fails with a "wrong ELF
> class" error, which configure does not catch.
>
> The offending lines in configure are often in the form:
>
> old_CFLAGS="$CFLAGS";
> CFLAGS="$Werror_FLAGS";
> export CFLAGS;
>
> where Werror_FLAGS is defined as: Werror_FLAGS="<errflag>".
>
> I think Werror_FLAGS should be redefined instead as:
>
> Werror_FLAGS="$CFLAGS <errflag>"
>
> maintaining the builder's CFLAGS. This would prevent problems like this
> from occurring in the future.
Do you want to provide a git-format-patch style patch?
Thanks,
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090316/758157d7/attachment.bin
More information about the samba-technical
mailing list