Check-in [7cda94da9b]
Overview
SHA1:7cda94da9b6a817b9386caad0c87e4f2995ebb09
Date: 2016-12-09 05:22:33
User: rkeene
Comment:Updated with a better check for -Wno-unused-result for TCC
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2016-12-09
05:23
[2a3cb3f447] tcc4tcl 0.27 (user: rkeene, tags: trunk, 0.27)
05:22
[7cda94da9b] Updated with a better check for -Wno-unused-result for TCC (user: rkeene, tags: trunk)
04:36
[a72b70810b] Updated configure system to latest version of macros (user: rkeene, tags: trunk)
Changes

Modified Makefile.in from [7c5884e932] to [24f224ef33].

   109    109   	rm -f TEST-STATUS
   110    110   	-$(MAKE) -C tcc distclean
   111    111   
   112    112   distclean: clean
   113    113   	rm -rf autom4te.cache
   114    114   	rm -f config.log config.status
   115    115   	rm -f pkgIndex.tcl tcc4tcl.syms
   116         -	rm -f Makefile
          116  +	rm -f Makefile tcc/Makefile
   117    117   
   118    118   mrproper: distclean
   119    119   	rm -rf tcc
   120    120   	rm -f configure aclocal.m4
   121    121   	rm -f config.guess config.sub install-sh
   122    122   
   123    123   .PHONY: all install test clean distclean mrproper

Modified build/pre.sh from [90dbaeeee6] to [8826309083].

    40     40   	rm -f "tcc-${tcc_version}.tar.bz2"
    41     41   
    42     42   	## Apply patches
    43     43   	for patchfile in ../build/tcc-patches/${tcc_version}/*.diff; do
    44     44   		( cd * && patch --no-backup-if-mismatch -p1 ) < "${patchfile}"
    45     45   	done
    46     46   
           47  +	## Rename "Makefile" to "Makefile.in" so configure processes it
           48  +	( cd * && mv Makefile Makefile.in ) || exit 1
           49  +
    47     50   	rm -rf ../tcc
    48     51   	mkdir ../tcc || exit 1
    49     52   	mv */* ../tcc/
    50         -)
           53  +) || exit 1
    51     54   rm -rf __TMP__

Added build/tcc-patches/0.9.26/tcc-0.9.26-fixmakefile.diff version [59f2a002dd].

            1  +diff -uNr tcc-0.9.26.orig/Makefile tcc-0.9.26-fixmakefile/Makefile
            2  +--- tcc-0.9.26.orig/Makefile	2013-02-15 08:24:00.000000000 -0600
            3  ++++ tcc-0.9.26-fixmakefile/Makefile	2016-12-08 23:20:32.856086001 -0600
            4  +@@ -16,7 +16,7 @@
            5  + ifeq (-$(GCC_MAJOR)-$(findstring $(GCC_MINOR),56789)-,-4--)
            6  + CFLAGS+=-D_FORTIFY_SOURCE=0
            7  + else
            8  +-CFLAGS+=-Wno-unused-result
            9  ++CFLAGS+=@TCC_WNO_UNUSED_RESULT@
           10  + endif
           11  + endif
           12  + endif

Modified configure.ac from [1f51af3ae0] to [d3ecbe92bf].

    64     64   		no_dlopen='0'
    65     65   	fi
    66     66   ])
    67     67   
    68     68   if test "$no_dlopen" = '1'; then
    69     69   	CPPFLAGS="${CPPFLAGS} -DCONFIG_TCC_STATIC_NODLOPEN=1"
    70     70   fi
           71  +
           72  +dnl Determine if the compiler supports -Wno-unused-result
           73  +AC_CACHE_CHECK([if compiler supports -Wno-unused-result], [tcc4tcl_cv_compiler_wno_unused_result], [
           74  +	SAVE_CFLAGS="${CFLAGS}"
           75  +	CFLAGS="${SAVE_CFLAGS} -Wno-unused-result"
           76  +	AC_COMPILE_IFELSE([AC_LANG_SOURCE()], [
           77  +		tcc4tcl_cv_compiler_wno_unused_result='yes'
           78  +	], [
           79  +		tcc4tcl_cv_compiler_wno_unused_result='no'
           80  +	])
           81  +	CFLAGS="${SAVE_CFLAGS}"
           82  +])
           83  +
           84  +if test "$tcc4tcl_cv_compiler_wno_unused_result" = 'yes'; then
           85  +	TCC_WNO_UNUSED_RESULT='-Wno-unused-result'
           86  +else
           87  +	TCC_WNO_UNUSED_RESULT='-Wno-unused-result'
           88  +fi
           89  +AC_SUBST(TCC_WNO_UNUSED_RESULT)
    71     90   
    72     91   dnl Determine HOST_PATH_SEPERATOR
    73     92   case $host_os in
    74     93   	*mingw*)
    75     94   		HOST_PATH_SEPARATOR=';'
    76     95   		;;
    77     96   	*)
................................................................................
    85    104   
    86    105   dnl This must be done last since it breaks the compilation
    87    106   if test "${TCC4TCL_TARGET}" = "shared"; then
    88    107   	DC_SETUP_STABLE_API([${srcdir}/tcc4tcl.vers], [tcc4tcl.syms])
    89    108   fi
    90    109   
    91    110   dnl Produce output
    92         -AC_OUTPUT(Makefile pkgIndex.tcl tcc4tcl.syms)
          111  +AC_OUTPUT(Makefile pkgIndex.tcl tcc4tcl.syms tcc/Makefile)