keplerproject / wsapi

WSAPI is an API that abstracts the web server from Lua web applications.
http://keplerproject.github.io/wsapi
74 stars 33 forks source link

Add -fPIC so lfcgi will build. #7

Closed emberian closed 11 years ago

emberian commented 11 years ago

The error I was getting before was

cc   -shared -o src/fastcgi/lfcgi.so src/fastcgi/lfcgi.c -lfcgi 
/usr/bin/ld: /tmp/ccRkuTV8.o: relocation R_X86_64_32 against `.rodata' can not
be used when making a shared object; recompile with -fPIC
/tmp/ccRkuTV8.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [src/fastcgi/lfcgi.so] Error 1

Thankfully it seems to have been a simple fix. Can this (or something else which might fix the problem) be made into a bugfix release for linux distro packagers?