Bug #44086 remove hack in 6.0/BUILD/compile-dist to force CXX=g++ before 6.0-ga
Submitted: 4 Apr 2009 0:10 Modified: 18 Mar 2010 14:11
Reporter: Timothy Smith Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:mysql-6.0 OS:Any
Assigned to: Daniel Fischer CPU Architecture:Any

[4 Apr 2009 0:10] Timothy Smith
Description:
A hack has been added to BUILD/compile-dist to force CXX=g++ if CXX=gcc.  For a long time it's been common to use CXX=gcc to avoid dependency on the C++ runtime.  However, MySQL 6.0 now requires full C++ support in the compiler (particularly for Falcon), so it will not build correctly if gcc is used for the C++ compiler.

This hack is in place to facilitate some scripts, etc., which rely on the old behavior.  It should be removed as soon as possible, but certainly before MySQL 6.0 is GA.

How to repeat:
See some tools that force CXX=gcc when doing a 'make dist', but they still work because of this hack in the code.

Suggested fix:
Fix tools which set CXX=gcc in the environment; this is incorrect for MySQL 6.0 and higher, but is OK for MySQL 5.1 and lower.
[18 Mar 2010 14:11] Daniel Fischer
Closing this bug because 6.0 is not currently being developed and compile-dist is being rewritten in 5.5.