Commit 2172e0c098 for openssl.org
commit 2172e0c098cd8e2f24a0d5f3cf36b6433bf9ef35
Author: openssl-machine <openssl-machine@openssl.org>
Date: Mon Mar 23 11:24:34 2026 +0100
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 <beldmit@gmail.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
MergeDate: Tue Mar 31 15:51:53 2026
(Merged from https://github.com/openssl/openssl/pull/30536)
diff --git a/crypto/build.info b/crypto/build.info
index a6801047c8..8e4a885dde 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 e9a8c81269..c7a9bd28f6 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
@@ -1155,7 +1155,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
@@ -1173,19 +1173,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
@@ -1194,7 +1194,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