Bug #50386 wrong test for usable assembler on opensolaris
Submitted: 15 Jan 2010 22:45 Modified: 17 Jan 2014 11:54
Reporter: Sergei Golubchik Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.1, 5.5.99-m3 OS:Any
Assigned to: CPU Architecture:Any

[15 Jan 2010 22:45] Sergei Golubchik
Description:
configure.in decides whether the build could use assembler versions of string functions by doing a test compile. This test compile uses $AS command, which is set as

if test "$ac_cv_prog_gcc" = "yes"
then
  AS="$CC -c"
  AC_SUBST(AS)
else
  AC_PATH_PROG(AS, as, as)
fi

on opensolaris with certain configure settings it succeeds, but the real build fails, because Makefile uses a different command: $CCAS $CCASFLAGS -c

How to repeat:
build on x86-64 opensolaris with

  CFLAGS=-m64 ./configure --enable-assembler && make

Suggested fix:
use "$CCAS $CCASFLAGS -c" in the test compilation in configure.in - the same command line that Makefile uses (compare with the Makefile to get it identical).

remove the code that sets AS from configure.in - AS is not used anyway.
[17 Jan 2010 10:02] Sveta Smirnova
Thank you for the report.

Verified as described.
[17 Jan 2014 11:54] Ståle Deraas
Posted by developer:
 
Autotools specific.