[csw-maintainers] MySQL built with GCC → mysql_config vs bindings
Maciej Bliziński
maciej at opencsw.org
Mon Jun 18 20:55:59 CEST 2012
On Mon, Jun 18, 2012 at 07:06:34PM +0200, Juergen Arndt wrote:
> 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.
Building MySQL with Studio would resolve these problems. It might be
still the least amount of work required to get things back into order.
I'm currently saturated with the compilers course at coursera, so don't
expect a huge output from me the nearest weeks. If anyone's interested
in porting, here are the changes you need to make to
pkg/mysql5/branches/mysql-5.5.x/Makefile to get going with Studio:
Index: Makefile
===================================================================
--- Makefile (revision 18435)
+++ Makefile (working copy)
@@ -21,6 +21,8 @@
# Useful when making a series of builds on the same day
# GARFLAVOR ?= DBG
+PACKAGING_PLATFORMS = solaris10-sparc solaris10-i386
+
# There is some assembler code, which doesn't work on sparcv8, and I don't see
# an easy way to switch it off.
ISA_DEFAULT_sparc-5.9 = sparcv8plus
@@ -36,9 +38,9 @@
# There are problems with the build using Sun Studio.
# GARCOMPILER = SOS12
-# EXTRA_CFLAGS = -mt -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__
-# EXTRA_CXXFLAGS = -mt -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__
-GARCOMPILER = GNU
+EXTRA_CFLAGS += -mt -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__
+EXTRA_CXXFLAGS += -mt -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__
+# GARCOMPILER = GNU
INITSMF = $(sysconfdir)/init\.d/csw$(NAME)
Maciej
More information about the maintainers
mailing list