picolisp: 32-bit C code cannot be built by clang
authorFredrik Fornwall <fredrik@fornwall.net>
Thu, 19 Jan 2017 05:11:00 +0000 (06:11 +0100)
committerFredrik Fornwall <fredrik@fornwall.net>
Thu, 19 Jan 2017 05:11:00 +0000 (06:11 +0100)
packages/picolisp/build.sh

index 61d473b..75d8324 100644 (file)
@@ -12,6 +12,10 @@ TERMUX_PKG_FOLDERNAME=picoLisp
 TERMUX_PKG_BUILD_IN_SRC=true
 # The assembly is not position-independent (would be a major rewrite):
 TERMUX_PKG_BLACKLISTED_ARCHES="x86_64"
+if [ $TERMUX_ARCH_BITS = 32 ]; then
+       # "Variable length array in structure won't be supported"
+       TERMUX_PKG_CLANG=no
+fi
 
 termux_step_pre_configure() {
        # Validate that we have the right version: