Bug #11492 The 'mysql_client' command doesn't provide flags for C++ usage
Submitted: 21 Jun 2005 21:06 Modified: 13 Dec 2007 16:26
Reporter: Kent Boortz Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S4 (Feature request)
Version:4.1.12 and 5.0.7 OS:Any (All)
Assigned to: Kent Boortz CPU Architecture:Any

[21 Jun 2005 21:06] Kent Boortz
Description:
To give users of the libmysqlclient library a black box view, there
is a command "mysql_config" that provides the flags for compiling
user code that use our C API, and for linking with our client library.

But the --cflags option might return flags not compatible with the
C++ compiler. This is the case with MySQL Solaris 8 build, where
the Sun C++ 5.6 compiler is used. The CC command doesn't
like the "-Xa" and "-xstrconst" options returned by "mysql_config".

How to repeat:
Download our Solaris 8 package, install, run "./mysql_config".
Try those flags with the CC command.

Suggested fix:
I suggest adding a --cxxflags option to the "mysql_config" command.
[3 Jan 2007 18:19] Jim Winstead
Here's an example of bad command-line options that get passed along to the DBD::mysql build scripts: http://rt.cpan.org/Ticket/Display.html?id=19199