#597187 libmysqlclient-dev: -fno-strict-aliasing in mysql_config --cflags

Package:
libmysqlclient-dev
Source:
mysql-8.0
Description:
MySQL database development files
Submitter:
Julian Taylor
Date:
2010-09-17 20:39:05 UTC
Severity:
normal
#597187#5
Date:
2010-09-17 12:06:08 UTC
From:
To:
mysql_config --cflags outputs the -fno-strict-aliasing flag.
As users of this library may not want to use this flag in their projects
the headers should be fixed and the flag removed from mysql_config.

The inclusion of the flag seems to be related to mysql being built with
-fno-strict-aliasing. Building without it also removes the flag from mysql_config.
So it may be the case that it is not required for the headers at all.

#597187#10
Date:
2010-09-17 19:52:58 UTC
From:
To:
MySQL itself is so completely un-safe for strict-aliasing it's not even
funny.

BUT - the libmysqlclient headers should have no problems in this regard.
Removing that flag from the mysql_config program should be a fine choice.

I do not recommend doing that by building MySQL with the flag removed
though - patching mysql_config after the fact will be much safer.