CryptoPkg/openssl: move compiler_flags to buildinf.c

Seems with openssl 3.0 this is used by multiple source files,
so we get duplicate symbol errors when linking.  Fix that by
moving compiler_flags from header file to a source file.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Xiaoyu Lu <xiaoyu1.lu@intel.com>
Cc: Guomin Jiang <guomin.jiang@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Tested-by: Ard Biesheuvel <ardb@kernel.org>
Tested-by: Brian J. Johnson <brian.johnson@hpe.com>
Tested-by: Kenneth Lautner <klautner@microsoft.com>
This commit is contained in:
Gerd Hoffmann 2023-08-03 12:37:29 +08:00 committed by mergify[bot]
parent c638d1f672
commit 3af00aec7f
7 changed files with 10 additions and 1 deletions

View File

@ -34,6 +34,7 @@
# Autogenerated files list starts here
# Autogenerated files list ends here
buildinf.h
buildinf.c
ossl_store.c
rand_pool.c
# SslNull.c

View File

@ -36,6 +36,7 @@
# Autogenerated files list starts here
# Autogenerated files list ends here
buildinf.h
buildinf.c
ossl_store.c
rand_pool.c
# SslNull.c

View File

@ -35,6 +35,7 @@
# Autogenerated files list starts here
# Autogenerated files list ends here
buildinf.h
buildinf.c
ossl_store.c
rand_pool.c
SslNull.c

View File

@ -39,6 +39,7 @@
# Autogenerated files list starts here
# Autogenerated files list ends here
buildinf.h
buildinf.c
ossl_store.c
rand_pool.c
# SslNull.c

View File

@ -41,6 +41,7 @@
# Autogenerated files list starts here
# Autogenerated files list ends here
buildinf.h
buildinf.c
ossl_store.c
rand_pool.c
# SslNull.c

View File

@ -0,0 +1,4 @@
/* SPDX-License-Identifier: BSD-2-Clause-Patent */
#include "buildinf.h"
const char *compiler_flags = "compiler: information not available from edk2";

View File

@ -1,4 +1,4 @@
#define PLATFORM "UEFI"
#define DATE "Fri Dec 22 01:23:45 PDT 2017"
const char *compiler_flags = "compiler: information not available from edk2";
extern const char *compiler_flags;