Fwd: why isn't libmysqld dynamically linked, was Re: why isn't mysqle a shared library?

Ian Monroe ian at monroe.nu
Wed Sep 24 19:22:13 CEST 2008


Good news. This would solve the whole fPIC mess. (Monty is creator of MySQL.)

We could speed this along by finding someone to make a patch to their
Automake to do this. I explicitly don't volunteer for this job.  :)


---------- Forwarded message ----------
From: Michael Widenius <monty at mysql.com>
Date: Wed, Sep 24, 2008 at 12:07 PM
Subject: why isn't libmysqld dynamically linked, was Re: why isn't
mysqle a shared library?
To: Ian Monroe <ian at monroe.nu>, joerg.bruehe at sun.com
Cc: internals at lists.mysql.com, georg at mysql.com
Ian> It was pointed out to me that 'mysqle' is actually a term we made up
Ian> and probably no one here knows what I meant at a glance. So I'll try
Ian> this question again. :)

Ian> I just enabled MySQL embedded libmysqld support in Amarok and we're
Ian> having all sorts of problems since its a static library. Apparently
Ian> static libraries are fundamentally not supposed to be linked into
Ian> dynamic libraries but thats exactly what we're trying to do. Its
Ian> possible to use -DFPIC, -fPIC and such to work around it (which the
Ian> mysql library doesn't do by default,
Ian> http://bugs.mysql.com/bug.php?id=39288). But really it'd be easier if
Ian> libmysqld was a dynamic library.

Ian> Why isn't libmysqld a shared library? Could it be made one?

Normally you link a library to an application and in this case a
static library is usual as easy to use as a dynamic one.

It should be quite easy to provide libmysqld both as a dynamic and a
shared library. I agree that we should look into doing this.

Regards,
Monty


More information about the Amarok-devel mailing list