X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=blobdiff_plain;f=buildconf.sh;h=d7fd646de17154f884c62f328fcbf3e544a0ba43;hp=1850bae2af30208d88f3e39be4e35580b6d60847;hb=823c76005503eb00b3681eedf0559a0dc06883ce;hpb=12b916d81e5d3ba6b9cfb601ecd65224825445e1 diff --git a/buildconf.sh b/buildconf.sh index 1850bae..d7fd646 100755 --- a/buildconf.sh +++ b/buildconf.sh @@ -6,6 +6,7 @@ autoconf=autoconf libtoolize=libtoolize autoheader=autoheader +test -d autom4te.cache && rm -r autom4te.cache test -d config || mkdir config if [ -d .git ]; then git submodule init @@ -71,7 +72,8 @@ esac if $enable_configure; then if [ -n "$sh_cflags" ]; then - CFLAGS="$sh_cflags" CXXFLAGS="$sh_cxxflags" ./configure --disable-shared --enable-static $* + CFLAGS="$sh_cflags" CXXFLAGS="$sh_cxxflags" ./configure \ + --disable-shared --enable-static --with-pic $* else ./configure $* fi