diff options
| author | Henry Kroll III <henry@comptune.com> | 2010-04-20 23:40:33 -0700 |
|---|---|---|
| committer | Henry Kroll <henry@hklap.(none)> | 2010-04-20 23:43:02 -0700 |
| commit | be7e339d8a2fbc132262e4a0b94b7c5c54aa89a3 (patch) | |
| tree | 33e8d288a8e57056bdf75e20ce64de5e9bbc26eb /configure | |
| parent | a64a6f36a04f7955eb33966a351280ff764fdd2b (diff) | |
| download | tinycc-be7e339d8a2fbc132262e4a0b94b7c5c54aa89a3.tar.gz tinycc-be7e339d8a2fbc132262e4a0b94b7c5c54aa89a3.tar.bz2 | |
Use mmap instead of exec mem for Selinux machines. Fixes crash on Fedora.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -130,6 +130,8 @@ for opt do ;; --with-libgcc) use_libgcc="yes" ;; + --with-selinux) have_selinux="yes" + ;; --help|-h) show_help="yes" ;; esac @@ -229,7 +231,8 @@ 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 " --with-libgcc use /lib/libgcc_s.so.1 instead of libtcc1.a" -echo "" +echo " --with-selinux use mmap instead of exec mem" +echo " [requires write access to /tmp]"echo "" #echo "NOTE: The object files are build at the place where configure is launched" exit 1 fi @@ -357,6 +360,10 @@ if test "$use_libgcc" = "yes" ; then echo "#define CONFIG_USE_LIBGCC" >> $TMPH echo "CONFIG_USE_LIBGCC=yes" >> config.mak fi +if test "$have_selinux" = "yes" ; then + echo "#define HAVE_SELINUX" >> $TMPH + echo "HAVE_SELINUX=yes" >> config.mak +fi version=`head $source_path/VERSION` echo "VERSION=$version" >>config.mak echo "#define TCC_VERSION \"$version\"" >> $TMPH |
