[debian-mysql] Bug#597187: Bug#597187: libmysqlclient-dev: -fno-strict-aliasing in mysql_config --cflags

Monty Taylor mordred at inaugust.com
Fri Sep 17 19:52:58 UTC 2010



On 09/17/2010 05:06 AM, Julian Taylor wrote:
> Package: libmysqlclient-dev
> Severity: normal
> 
> 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.

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.






More information about the pkg-mysql-maint mailing list