[prev in list] [next in list] [prev in thread] [next in thread] 

List:       amarok-devel
Subject:    Fwd: why isn't libmysqld dynamically linked,
From:       "Ian Monroe" <ian () monroe ! nu>
Date:       2008-09-24 17:22:13
Message-ID: f680fec50809241022n662ee02clf9521bbd8b7e67e1 () mail ! gmail ! com
[Download RAW message or body]

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@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@monroe.nu>, joerg.bruehe@sun.com
Cc: internals@lists.mysql.com, georg@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
_______________________________________________
Amarok-devel mailing list
Amarok-devel@kde.org
https://mail.kde.org/mailman/listinfo/amarok-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic