<br><br><div class="gmail_quote">On Mon, Mar 29, 2010 at 1:44 PM, Neil Patel <span dir="ltr">&lt;<a href="mailto:neilp@cs.stanford.edu">neilp@cs.stanford.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Lloyd,<div><br></div><div>Even after the change to the config file below, I can&#39;t get the package to compile:</div><div><br></div><div><div>[root@topaz luasql-2.1.1]# make</div><div>export MACOSX_DEPLOYMENT_TARGET=&quot;10.3&quot;; gcc -O2 -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -ansi -pedantic -I../compat/src -DUNIXODBC -I/usr/local/include -I/usr/local/include  -o src/odbc.so -shared  src/luasql.o src/ls_odbc.o  -L/usr/local/lib -lodbc</div>


<div>/usr/bin/ld: src/luasql.o: relocation R_X86_64_32 against `a local symbol&#39; can not be used when making a shared object; recompile with -fPIC</div><div>src/luasql.o: could not read symbols: Bad value</div><div>collect2: ld returned 1 exit status</div>


<div>make: *** [src/odbc.so] Error 1</div><div><br></div><div>Anything I need to change or do other than add -fPIC to CFLAGS?</div></div></blockquote><div><br>Here&#39;s<br>the script I use.<br></div><br></div><br>