From: openssl-machine Date: Mon, 23 Mar 2026 10:24:34 +0000 (+0100) Subject: Fix loongarch64 build and clean up include paths X-Git-Tag: openssl-4.0.0~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=487d1e9516810d6006a58fdf33e70e744461dcba;p=thirdparty%2Fopenssl.git Fix loongarch64 build and clean up include paths Fixes #30418 Add ../crypto to INCLUDE[p_ossltest]. Remove useless .. from various INCLUDE[] - this was necessary when e_os.h was placed in the SRCDIR root. Reviewed-by: Dmitry Belyavskiy Reviewed-by: Paul Dale Reviewed-by: Norbert Pocs Reviewed-by: Neil Horman MergeDate: Tue Mar 31 15:51:53 2026 (Merged from https://github.com/openssl/openssl/pull/30536) (cherry picked from commit 2172e0c098cd8e2f24a0d5f3cf36b6433bf9ef35) --- diff --git a/crypto/build.info b/crypto/build.info index a6801047c8b..8e4a885dde7 100644 --- a/crypto/build.info +++ b/crypto/build.info @@ -67,7 +67,6 @@ ENDIF # provider module that uses it. ctype.c is included here because the CPUID # uses functions from there to parse magic environment variables. $CPUID_COMMON=$CPUIDASM cpuid.c ctype.c -INCLUDE[cpuid.o]=.. SOURCE[../libcrypto]=$CPUID_COMMON DEFINE[../libcrypto]=$CPUIDDEF diff --git a/test/build.info b/test/build.info index 89802c2ca43..613c2fcce24 100644 --- a/test/build.info +++ b/test/build.info @@ -582,15 +582,15 @@ IF[{- !$disabled{tests} -}] DEPEND[bio_dgram_test]=../libcrypto libtestutil.a SOURCE[bio_tfo_test]=bio_tfo_test.c - INCLUDE[bio_tfo_test]=../include ../apps/include .. + INCLUDE[bio_tfo_test]=../include ../apps/include DEPEND[bio_tfo_test]=../libcrypto libtestutil.a SOURCE[membio_test]=membio_test.c - INCLUDE[membio_test]=../include ../apps/include .. + INCLUDE[membio_test]=../include ../apps/include DEPEND[membio_test]=../libcrypto libtestutil.a SOURCE[bio_dgram_test]=bio_dgram_test.c - INCLUDE[bio_dgram_test]=../include ../apps/include .. + INCLUDE[bio_dgram_test]=../include ../apps/include DEPEND[bio_dgram_test]=../libcrypto libtestutil.a SOURCE[params_api_test]=params_api_test.c @@ -1151,7 +1151,7 @@ IF[{- !$disabled{tests} -}] DEPEND[errtest]=../libcrypto libtestutil.a SOURCE[aesgcmtest]=aesgcmtest.c - INCLUDE[aesgcmtest]=../include ../apps/include .. + INCLUDE[aesgcmtest]=../include ../apps/include DEPEND[aesgcmtest]=../libcrypto libtestutil.a PROGRAMS{noinst}=context_internal_test @@ -1169,19 +1169,19 @@ IF[{- !$disabled{tests} -}] PROGRAMS{noinst}=provider_internal_test DEFINE[provider_internal_test]=PROVIDER_INIT_FUNCTION_NAME=p_test_init SOURCE[provider_internal_test]=provider_internal_test.c p_test.c - INCLUDE[provider_internal_test]=../include ../apps/include .. + INCLUDE[provider_internal_test]=../include ../apps/include DEPEND[provider_internal_test]=../libcrypto.a libtestutil.a PROGRAMS{noinst}=provider_test DEFINE[provider_test]=PROVIDER_INIT_FUNCTION_NAME=p_test_init SOURCE[provider_test]=provider_test.c p_test.c - INCLUDE[provider_test]=../include ../apps/include .. + INCLUDE[provider_test]=../include ../apps/include DEPEND[provider_test]=../libcrypto libtestutil.a IF[{- !$disabled{module} -}] MODULES{noinst}=p_test p_ossltest SOURCE[p_test]=p_test.c SOURCE[p_ossltest]=p_ossltest.c ../providers/prov_running.c - INCLUDE[p_test]=../include .. - INCLUDE[p_ossltest]=../include .. ../providers/common/include ../providers/implementations/include ../providers/implementations + INCLUDE[p_test]=../include + INCLUDE[p_ossltest]=../include ../crypto ../providers/common/include ../providers/implementations/include ../providers/implementations DEPEND[p_ossltest]=../providers/libcommon.a ../libcrypto IF[{- defined $target{shared_defflag} -}] SOURCE[p_test]=p_test.ld @@ -1190,7 +1190,7 @@ IF[{- !$disabled{tests} -}] ENDIF MODULES{noinst}=p_minimal SOURCE[p_minimal]=p_minimal.c - INCLUDE[p_minimal]=../include .. + INCLUDE[p_minimal]=../include IF[{- defined $target{shared_defflag} -}] SOURCE[p_minimal]=p_minimal.ld GENERATE[p_minimal.ld]=../util/providers.num