I can't get luasql to compile on CentOS 5.4:

[root@topaz luasql-2.1.1]# make
gcc -fPIC -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -ansi -pedantic -I../compat/src -I/usr/include/mysql -I/usr/local/include  -o src/mysql.so -shared  src/luasql.o src/ls_mysql.o  -L/usr/local/mysql/lib -lmysqlclient -lz
/usr/bin/ld: src/luasql.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
src/luasql.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [src/mysql.so] Error 1

I've tried adding the -fPIC in the make but still no luck. Also, the FS wiki warns agains compiling with the MySQL driver since it leaks memory. So how do I install luasql for MySQL? Couldn't find any RPMs, can anyone here share one?

Thanks,
Neil