From 43b9c52026ff6e3d0921efee780f67e2d0865127 Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Thu, 11 May 2023 06:59:10 +0000 Subject: devel/apr1: unbreak the port's build against enforced ccache Without setting CC_FOR_BUILD the configure script will try to search for suitable compiler, and if `devel/ccache` is packaged with compiler symlinks, its `gcc' would be detected first thus breaking the port's build. This only applies to APR_CONF_ENV, not APU_CONF_ENV. --- devel/apr1/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devel/apr1/Makefile b/devel/apr1/Makefile index b6841930df3c..233168dbcb4e 100644 --- a/devel/apr1/Makefile +++ b/devel/apr1/Makefile @@ -112,7 +112,8 @@ SQLITE_VARS_OFF= APU_CONF_ARGS+=--without-sqlite3 ${db}_VARS_OFF= APU_CONF_ARGS+=--without-${db:tl} .endfor -APR_CONF_ENV+= ${CONFIGURE_ENV:O:u} CC="${CC}" CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" +APR_CONF_ENV+= ${CONFIGURE_ENV:O:u} CC="${CC}" CC_FOR_BUILD="${CC}" \ + CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" # include apu specific CPPFLAGS 1st! APU_CONF_ENV+= ${CONFIGURE_ENV:O:u} CC="${CC}" CFLAGS="${CFLAGS}" CPPFLAGS="${APU_CPPFLAGS} ${CPPFLAGS}" -- cgit v1.2.3