[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: XML File LPexportBug618282.xml    

 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
Btw, this is using mariadb-5.1.49-Linux-x86_64.tar.gz

Comment by Kristian Nielsen [ 2010-08-16 ]

Re: libmysqld.a is not compiled with -fPIC
See also MWL#74:

http://askmonty.org/worklog/Server-RawIdeaBin/?tid=74

Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ]

Launchpad bug id: 618282

Generated at Thu Feb 08 06:43:14 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.