salortiz / LMDB_File

Perl wrapper around the OpenLDAP's LMDB
Other
8 stars 12 forks source link

Pass the option -fPIC to the liblmdb makefile to avoid having to modify the liblmdb Makefile #2

Closed rouzier closed 9 years ago

rouzier commented 9 years ago

When trying to compile against a virgin liblmdb I received the following error. /usr/bin/ld: liblmdb/liblmdb.a(mdb.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC

So in order to avoid having to modify the lmdb/Makefile every time I passed the -fPIC option

rouzier commented 9 years ago

Here is the commit in lmdb that changed previous behavior https://gitorious.org/mdb/mdb/commit/8bec53fdfd56528a26ec31f6361160585c91cb53

salortiz commented 9 years ago

Indeed, I don't know why Howard made that change.