Overview
Comment: | Added script to perform known header corrections |
---|---|
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
016eb686f910d3aaadb77c7a05e6bc8e |
User & Date: | rkeene on 2014-05-18 02:20:46 |
Other Links: | manifest | tags |
Context
2014-05-18
| ||
02:21 | tcc4tcl 0.10 check-in: ef02f1b927 user: rkeene tags: trunk, 0.10 | |
02:20 | Added script to perform known header corrections check-in: 016eb686f9 user: rkeene tags: trunk | |
01:08 | More work on getting headers correctly made available check-in: 76ee8b8d3d user: rkeene tags: trunk | |
Changes
Modified Makefile.in from [3232e8d81e] to [d1e42a6427].
︙ | ︙ | |||
54 55 56 57 58 59 60 | tcc4tcl-static.a: tcc4tcl.o tcc/libtcc.a cp tcc/libtcc.a tcc4tcl-static.new.a $(AR) rcu tcc4tcl-static.new.a tcc4tcl.o -$(RANLIB) tcc4tcl-static.new.a mv tcc4tcl-static.new.a tcc4tcl-static.a | | | 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | tcc4tcl-static.a: tcc4tcl.o tcc/libtcc.a cp tcc/libtcc.a tcc4tcl-static.new.a $(AR) rcu tcc4tcl-static.new.a tcc4tcl.o -$(RANLIB) tcc4tcl-static.new.a mv tcc4tcl-static.new.a tcc4tcl-static.a install: $(TARGET) pkgIndex.tcl $(srcdir)/tcc4tcl.tcl tcc/libtcc1.a $(shell echo $(srcdir)/tcc/include/*) $(srcdir)/headers.awk $(srcdir)/patch-headers.sh $(INSTALL) -d "$(DESTDIR)$(PACKAGE_INSTALL_DIR)" $(INSTALL) -d "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/lib" $(INSTALL) -d "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/include" $(INSTALL) -m 0755 $(TARGET) "$(DESTDIR)$(PACKAGE_INSTALL_DIR)" $(INSTALL) -m 0644 pkgIndex.tcl "$(DESTDIR)$(PACKAGE_INSTALL_DIR)" $(INSTALL) -m 0644 $(srcdir)/tcc4tcl.tcl "$(DESTDIR)$(PACKAGE_INSTALL_DIR)" $(INSTALL) -m 0644 tcc/libtcc1.a "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/lib" |
︙ | ︙ | |||
78 79 80 81 82 83 84 85 86 87 88 89 90 91 | dst="$(DESTDIR)$(PACKAGE_INSTALL_DIR)/include/$$dst"; \ if [ -e "$${dst}" ]; then continue; fi; \ dstdir="$$(dirname "$$dst")"; \ mkdir -p "$$dstdir"; \ echo cp "$$src" "$$dst"; \ cp "$$src" "$$dst"; \ done test: rm -rf __TMP__ $(MAKE) install tcllibdir=$(shell pwd)/__TMP__ -if [ "$(PACKAGE_VERSION)" = '@@VERS@@' ]; then cd __TMP__/* && sed -i 's|@@VERS@@|0.0.0.11|g' tcc4tcl.@SHOBJEXT@ pkgIndex.tcl; fi tclsh test echo Tests Completed OK > TEST-STATUS | > | 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | dst="$(DESTDIR)$(PACKAGE_INSTALL_DIR)/include/$$dst"; \ if [ -e "$${dst}" ]; then continue; fi; \ dstdir="$$(dirname "$$dst")"; \ mkdir -p "$$dstdir"; \ echo cp "$$src" "$$dst"; \ cp "$$src" "$$dst"; \ done $(srcdir)/patch-headers.sh "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/include" test: rm -rf __TMP__ $(MAKE) install tcllibdir=$(shell pwd)/__TMP__ -if [ "$(PACKAGE_VERSION)" = '@@VERS@@' ]; then cd __TMP__/* && sed -i 's|@@VERS@@|0.0.0.11|g' tcc4tcl.@SHOBJEXT@ pkgIndex.tcl; fi tclsh test echo Tests Completed OK > TEST-STATUS |
︙ | ︙ |
Added patch-headers.sh version [3d4b689176].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #! /bin/bash headers_dir="$1" cd "${headers_dir}" || exit 1 # Android header fix-ups ## Do not abort compilation at header include time if grep '^#error "No function renaming possible"' sys/cdefs.h >/dev/null 2>/dev/null; then awk ' /#error "No function renaming possible"/{ print "#define __RENAME(x) no renaming on this platform" next } {print} ' sys/cdefs.h > sys/cdefs.h.new cat sys/cdefs.h.new > sys/cdefs.h rm -f sys/cdefs.h.new fi ## loff_t depends on __GNUC__ for some reason if awk -v retval=1 '/__GNUC__/{ getline; if ($0 ~ /__kernel_loff_t/) {retval=0} } END{exit retval}' asm/posix_types.h >/dev/null 2>/dev/null; then awk '/__GNUC__/{ getline; if ($0 ~ /__kernel_loff_t/) { print "#if 1"; print; next } } { print }' asm/posix_types.h > asm/posix_types.h.new cat asm/posix_types.h.new > asm/posix_types.h rm -f asm/posix_types.h.new fi # Busted wrapper fix-up if grep '__STDC_HOSTED__' stdint.h >/dev/null 2>/dev/null && grep '_GCC_WRAP_STDINT_H' stdint.h >/dev/null 2>/dev/null; then echo '#include_next <stdint.h>' > stdint.h fi |