[csw-maintainers] =?utf-8?q?Re:__MySQL_built_with_GCC_=E2=86=92_mysql=96config_vs_bindings?=

Ben Walton bwalton at opencsw.org
Tue Jun 19 01:54:03 CEST 2012


Excerpts from Juergen Arndt's message of Mon Jun 18 13:06:34 -0400 2012:

> As already shortly discussed with Maciej yesterday, this seems to be
> a general problem and not only concerning the Nagios plugins. In my
> opinion a lot of packages which have to be compiled with SunStudio
> and needs MySQL support will run into these issues.

Anything that is a target of language bindings (pretty much all common
libraries) would benefit from a mechanism that allowed building it
with either compiler.  We'd need a nice way to make this as
transparent to the users (maintainers included) to easily pick the
right compiler to get the right options returned from the pkg-config
tools.

A generic pkg-config tool that detected $CC from the environment and
forked an appropriate sub-command ($pkg-config.$compiler) to provide
the appropriate values would work.  It may be required to build things
with both compilers though...at least enough to know what the tool
would spit out for --libs, --cflags, etc.  In some cases this might be
guessed and then provided with a simple shell script.

Unless we make a hard standardization on one compiler, this problem
won't be easily solved, I don't think.

What do others think?

Thanks
-Ben
--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302



More information about the maintainers mailing list