[MDEV-2644] LP:618282 - libmysqld.a is not compiled with -fPIC Created: 2010-08-15 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Christophe Devine (Inactive) | Assignee: | Kristian Nielsen |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The binary objects in the embedded library (libmysqld.a) are not all compiled with fPIC, this leads to the following error message when attempting to create a position-independant executable (-pie): /usr/bin/ld: /opt/mariadb/lib/mysql/libmysqld.a(my_new.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC I can recompile manually mariadb by adding -fPIC to CFLAGS, but it would be nice to have this option turned on in the binary Linux distribution as well. |
| Comments |
| Comment by Christophe Devine (Inactive) [ 2010-08-15 ] |
|
Re: libmysqld.a is not compiled with -fPIC |
| Comment by Kristian Nielsen [ 2010-08-16 ] |
|
Re: libmysqld.a is not compiled with -fPIC |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 618282 |