Browse Source

compile using clang

android-5
its-pointless 7 years ago
committed by Fredrik Fornwall
parent
commit
d8664e3d89
  1. 7
      packages/indent/build.sh
  2. 20
      packages/indent/lexi.c.patch

7
packages/indent/build.sh

@ -6,4 +6,9 @@ TERMUX_PKG_SHA256=aaff60ce4d255efb985f0eb78cca4d1ad766c6e051666073050656b6753a08
TERMUX_PKG_DEPENDS="libandroid-support"
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_HOSTBUILD=true
TERMUX_PKG_CLANG=no
termux_step_post_extract_package() {
# this should detect if we are running inside termux docker image
if [ $HOME = "/home/builder" ] && [ "grep docker /proc/1/cgroup > /dev/null" ]; then
sudo apt install texi2html
fi
}

20
packages/indent/lexi.c.patch

@ -0,0 +1,20 @@
--- ../cache/indent-2.2.11/src/lexi.c 2009-11-11 19:36:32.000000000 +0000
+++ ./src/lexi.c 2018-03-12 23:14:07.881637140 +0000
@@ -199,7 +199,7 @@
/* Include code generated by gperf */
#ifdef __GNUC__
-__inline
+static __inline
#endif
templ_ty *is_reserved (const char *str, unsigned int len);
@@ -213,7 +213,7 @@
#undef MAX_WORD_LENGTH
#ifdef __GNUC__
-__inline
+static __inline
#endif
templ_ty *is_reserved_cc (register const char *str, register unsigned int len);
Loading…
Cancel
Save