libmysqlclient.a with -fPIC flag (Position Independent Code)
Posted by: Evgeny Barabanov
Date: October 30, 2012 07:05AM

I want to include few database connectors in my own wrapper, which will be distributed as shared library. In order to do this, I need a version of libmysqlclient which is compiled with -fPIC flag (otherwise I get an error:
(client.c.o): relocation R_X86_64_32S against `client_errors' can not be used when making a shared object; recompile with -fPIC) . I didn't found such version on official site, so there is a question:
Is there anywhere libmysqlclient.a compiled with -fPIC? If no, how can I compile it form sources with this flag?

Options: ReplyQuote


Subject
Views
Written By
Posted
libmysqlclient.a with -fPIC flag (Position Independent Code)
2188
October 30, 2012 07:05AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.