Hi,
It is okay to add a few extra configure arguments [1]?
I'm working on an OS that does not support a few features (yet). Such
as: long double, stuff needed for "tcc -run" and stuff needed for bound
check.
So, my solution is to disable them during the configuration. I have a
patch for that, but I don't want to commit it until I know it is okay or
not.
Regards,
Áron
[1]:
--- a/configure
+++ b/configure
@@ -144,6 +144,12 @@ for opt do
;;
--config-*) confvars="$confvars ${opt#--config-}"; suggest="no"
;;
+ --no-long-double) no_long_double="yes"
+ ;;
+ --disable-run) disable_run="yes"
+ ;;
+ --disable-bcheck) disable_bcheck="yes"
+ ;;
--help|-h) show_help="yes"
;;
*) echo "configure: WARNING: unrecognized option $opt"
@@ -510,6 +516,16 @@ if test $? -ne 0 ; then
else
echo "config.h is unchanged"
fi
+if test "$no_long_double" = "yes" ; then
+ echo "#define CONFIG_NO_LONG_DOUBLE 1" >> $TMPH
+fi
+if test "$disable_run" = "yes" ; then
+ echo "#define CONFIG_DISABLE_RUN 1" >> $TMPH
+fi
+if test "$disable_bcheck" = "yes" ; then
+ echo "#define CONFIG_DISABLE_BCHECK" >> $TMPH
+ echo "CONFIG_DISABLE_BCHECK=yes" >> config.mak
+fi
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel