From b1adfd5d836cdb089dd5295bb640d798fa2338d8 Mon Sep 17 00:00:00 2001 From: Aditya Alok Date: Fri, 31 Jan 2025 17:46:30 +0530 Subject: [PATCH] pkg(ghc-cross): Do not build profiled libs for Arm - Takes more than 6hrs to build Signed-off-by: Aditya Alok --- packages/ghc-cross/build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/ghc-cross/build.sh b/packages/ghc-cross/build.sh index bb89cfc..a784344 100644 --- a/packages/ghc-cross/build.sh +++ b/packages/ghc-cross/build.sh @@ -22,9 +22,12 @@ termux_step_pre_configure() { export CONF_CC_OPTS_STAGE1="$CFLAGS $CPPFLAGS" CONF_GCC_LINKER_OPTS_STAGE1="$LDFLAGS" export CONF_CC_OPTS_STAGE2="$CFLAGS $CPPFLAGS" CONF_GCC_LINKER_OPTS_STAGE2="$LDFLAGS" + export flavour="perf" + target="$TERMUX_HOST_PLATFORM" if [ "$TERMUX_ARCH" = "arm" ]; then target="armv7a-linux-androideabi" + flavour+="+no_profiled_libs" # Otherwise takes more than 6 hrs to build. fi TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --target=$target" @@ -34,7 +37,7 @@ termux_step_pre_configure() { termux_step_make() { ( unset CFLAGS CPPFLAGS LDFLAGS # For stage0 compilation. - ./hadrian/build binary-dist-xz --flavour=perf --docs=none \ + ./hadrian/build binary-dist-xz --flavour="$flavour" --docs=none \ "stage1.*.ghc.*.opts += -optl-landroid-posix-semaphore" )