./configure --prefix=/usr --libdir=/usr/lib64 --disable-gtk --with-x=no --without-x --with-fontpath=/usr/share/fonts/default/TTF --enable-dynamic --disable-cairo --disable-compile-inits --without-jasper To build Ghostscript as a shared object with gcc (instead of as a single large executable) use: make so -j4 make soinstall