• configure
./configure \
    --enable-shared \
    CFLAGS=-fPIC
  • make
make \
    CFLAGS='$CFLAGS -fpic'