diff --git a/package/apr/apr.mk b/package/apr/apr.mk index e8cf0f309e..f7f7553e54 100644 --- a/package/apr/apr.mk +++ b/package/apr/apr.mk @@ -34,7 +34,6 @@ APR_CONF_ENV = \ ac_cv_mmap__dev_zero=yes \ ac_cv_func_setpgrp_void=yes \ apr_cv_process_shared_works=yes \ - ac_cv_prog_cc_c23=$(if $(BR2_HOST_GCC_AT_LEAST_14),yes,no) \ apr_cv_mutex_robust_shared=no \ apr_cv_tcp_nodelay_with_cork=yes \ ac_cv_sizeof_struct_iovec=8 \ @@ -51,6 +50,10 @@ APR_CONF_ENV = \ apr_preload_done=yes APR_CONFIG_SCRIPTS = apr-1-config +ifeq ($(BR2_HOST_GCC_AT_LEAST_14),) +APR_CONF_ENV += ac_cv_prog_cc_c23=no +endif + # Doesn't even try to guess when cross compiling ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) APR_CONF_ENV += apr_cv_pthreads_lib="-lpthread"