[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: |
|
||||||||
| Description |
|
Hello, I'd love to see an CMAKE option for the MariaDB components to be linked against dynamic library (libmariadb.so). Is that already an option I just overlooked? |
| 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. – |