diff --git a/lua/luacurl/luacurl.conf b/lua/luacurl/luacurl.conf index e67a7d4e3..e57035624 100644 --- a/lua/luacurl/luacurl.conf +++ b/lua/luacurl/luacurl.conf @@ -21,7 +21,7 @@ pkg_luacurl_custmain() { local CURLCFLAGS=$( pkg-config --cflags-only-I libcurl ) local CURLLIBS=$( pkg-config --libs libcurl ) - eval $CC -shared $LUACFLAGS $CURLCFLAGS luacurl.c -o luacurl.so $LUALIBS $CURLLIBS + eval $CC -shared -fPIC $LUACFLAGS $CURLCFLAGS luacurl.c -o luacurl.so $LUALIBS $CURLLIBS cp -avf luacurl.so $root$lualibdir }