add --disable-static option to build libtcc.so instead of libtcc.a

for distros that want static libs
This commit is contained in:
Henry Kroll III
2010-04-24 02:35:43 -07:00
parent 1578322b06
commit a4ed587f61
2 changed files with 33 additions and 10 deletions

6
configure vendored
View File

@ -128,6 +128,8 @@ for opt do
;;
--enable-cross) build_cross="yes"
;;
--disable-static) disable_static="yes"
;;
--with-libgcc) use_libgcc="yes"
;;
--with-selinux) have_selinux="yes"
@ -230,6 +232,7 @@ echo " --source-path=PATH path of source code [$source_path]"
echo " --cross-prefix=PREFIX use PREFIX for compile tools [$cross_prefix]"
echo " --sysroot=PREFIX prepend PREFIX to library/include paths []"
echo " --cc=CC use C compiler CC [$cc]"
echo " --disable-static make libtcc.so instead of libtcc.a"
echo " --with-libgcc use /lib/libgcc_s.so.1 instead of libtcc1.a"
echo " --with-selinux use mmap instead of exec mem"
echo " [requires write access to /tmp]"
@ -357,6 +360,9 @@ fi
if test "$build_cross" = "yes" ; then
echo "CONFIG_CROSS=yes" >> config.mak
fi
if test "$disable_static" = "yes" ; then
echo "DISABLE_STATIC=yes" >> config.mak
fi
if test "$use_libgcc" = "yes" ; then
echo "#define CONFIG_USE_LIBGCC" >> $TMPH
echo "CONFIG_USE_LIBGCC=yes" >> config.mak