X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/40a7f89896a34594e760f61f58150aba56e8b853..f252068260cd4a0d8abcaf8fa3b0f9328854d707:/packages/picolisp/build.sh diff --git a/packages/picolisp/build.sh b/packages/picolisp/build.sh index d84fad16..ce481bfb 100644 --- a/packages/picolisp/build.sh +++ b/packages/picolisp/build.sh @@ -2,12 +2,12 @@ TERMUX_PKG_HOMEPAGE=https://picolisp.com TERMUX_PKG_DESCRIPTION="Lisp interpreter and application server framework" TERMUX_PKG_DEPENDS="libcrypt, openssl" _PICOLISP_YEAR=17 -_PICOLISP_MONTH=5 -_PICOLISP_DAY=16 +_PICOLISP_MONTH=8 +_PICOLISP_DAY=7 TERMUX_PKG_VERSION=${_PICOLISP_YEAR}.${_PICOLISP_MONTH}.${_PICOLISP_DAY} # We use our bintray mirror since old version snapshots are not kept on main site. TERMUX_PKG_SRCURL=https://dl.bintray.com/termux/upstream/picolisp_${TERMUX_PKG_VERSION}.tar.gz -TERMUX_PKG_SHA256=24964e43859a6beeb291a993904ab9b2c17b9db2b2ed47e7339034499ef1bd91 +TERMUX_PKG_SHA256=7db7f2ce7c06b07ac6e74f156462de4b6e5181fa3912a922da27447afa3197df TERMUX_PKG_FOLDERNAME=picoLisp TERMUX_PKG_BUILD_IN_SRC=true # The assembly is not position-independent (would be a major rewrite): @@ -15,14 +15,6 @@ 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 -else - # FIXME: Use gcc for linking, as a clang build causes (tzo), - # the time zone offset, to return 0: - # Also, this call (and probably more) hangs: - # (call "termux-notification" "--title" "Title" "--content" "Message") - # These two problems only happen when using the gold linker, which - # Termux does by default). - TERMUX_PKG_CLANG=no fi termux_step_pre_configure() { @@ -57,11 +49,14 @@ termux_step_make_install () { $TERMUX_HOST_PLATFORM-as -o ${TERMUX_PKG_EXTRA_MAKE_ARGS}.ext.o ${TERMUX_PKG_EXTRA_MAKE_ARGS}.ext.s $TERMUX_HOST_PLATFORM-as -o ${TERMUX_PKG_EXTRA_MAKE_ARGS}.ht.o ${TERMUX_PKG_EXTRA_MAKE_ARGS}.ht.s + # Use -fuse-ld=bfd to avoid using the gold linker (which Termux + # patches NDK to use by default) as it causes (tzo), the time + # zone offset, to always be 0 (and probably other problems): $CC -o ../bin/picolisp ${TERMUX_PKG_EXTRA_MAKE_ARGS}.base.o \ - -Wl,--no-as-needed -rdynamic -lc -lm -ldl -pie + -Wl,--no-as-needed -rdynamic -lc -lm -ldl -pie -fuse-ld=bfd chmod +x ../bin/picolisp - $CC -o ../lib/ext -shared -rdynamic ${TERMUX_PKG_EXTRA_MAKE_ARGS}.ext.o - $CC -o ../lib/ht -shared -rdynamic ${TERMUX_PKG_EXTRA_MAKE_ARGS}.ht.o + $CC -o ../lib/ext -shared -rdynamic -fuse-ld=bfd ${TERMUX_PKG_EXTRA_MAKE_ARGS}.ext.o + $CC -o ../lib/ht -shared -rdynamic -fuse-ld=bfd ${TERMUX_PKG_EXTRA_MAKE_ARGS}.ht.o fi mkdir -p $TERMUX_PREFIX/share/man/man1