[MDEV-14187] Feature request: Dynamic linking Created: 2017-10-29  Updated: 2017-10-29  Resolved: 2017-10-29

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Fix Version/s: N/A

Type: Task Priority: Major
Reporter: Michal Schorm Assignee: Sergei Golubchik
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by MDEV-290 link clients dynamically in RPMs Open

 Description   

Hello,

I'd love to see an CMAKE option for the MariaDB components to be linked against dynamic library (libmariadb.so).
At this time, all of the binaries that MariaDB have, contain bundled library (libmariadbclient.a) in them.

Is that already an option I just overlooked?
Are there any issues that would make dynamic linking not acceptable?



 Comments   
Comment by Sergei Golubchik [ 2017-10-29 ]

As far as I remember (I never liked that clients are linked statically and tried to link them dynamically a couple of times), the problem is that they historically use a lot of functionality from libmysys.a and internals of libmysqlclient.a. They simply won't link with libmariadb.so.

I totally agree that they should be linked dynamically, but it less than trivial and will take some time to implement.

Comment by Michal Schorm [ 2017-10-29 ]

Good to know.
I also believe, well made API (which will obviously need extensions for those binaries) will pay back years in the future.


That's why I marked it as a "Feature request", something I don't expect fixed tommorow.

Generated at Thu Feb 08 08:11:36 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.