Skip to content

Commit 765e2d3

Browse files
committed
log the generated curl_config.h
1 parent ed1e5cc commit 765e2d3

File tree

2 files changed

+26
-27
lines changed

2 files changed

+26
-27
lines changed

deps/curl/overlay/curl.BUILD.bazel

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -53,27 +53,25 @@ PUBLIC_HEADERS = [
5353
]
5454

5555
LOCAL_DEFINES = [
56-
"-DHAVE_CONFIG_H",
57-
]
58-
59-
# TODO: Bring this into LOCAL_DEFINES
60-
XLOCAL_DEFINES = [
61-
"-DOPENSSLDIR='\"/opt/datadog/embedded/ssl/cacerts\"'",
62-
"-DENGINESDIR='\"_/opt/datadog/embedded/lib/engines-3\"'",
63-
"-DMODULESDIR='\"/opt/datadog/embedded/lib/ossl-modules\"'",
64-
"-DBSAES_ASM",
65-
"-DECP_NISTZ256_ASM",
66-
"-DECP_SM2P256_ASM",
67-
"-DKECCAK1600_ASM",
68-
"-DOPENSSL_CPUID_OBJ",
69-
"-DSHA1_ASM",
70-
"-DSHA256_ASM",
71-
"-DSHA512_ASM",
72-
"-DSM4_ASM",
73-
"-DVPAES_ASM",
74-
"-DVPSM4_ASM",
75-
"-DL_ENDIAN",
76-
"-DOPENSSL_PIC",
56+
"HAVE_CONFIG_H",
57+
"CURL_DISABLE_DIGEST_AUTH",
58+
"BSAES_ASM",
59+
"ECP_NISTZ256_ASM",
60+
"ECP_SM2P256_ASM",
61+
"KECCAK1600_ASM",
62+
"L_ENDIAN",
63+
"OPENSSL_CPUID_OBJ",
64+
"OPENSSL_PIC",
65+
"SHA1_ASM",
66+
"SHA256_ASM",
67+
"SHA512_ASM",
68+
"SM4_ASM",
69+
"VPAES_ASM",
70+
"VPSM4_ASM",
71+
72+
#"OPENSSLDIR='\"/opt/datadog/embedded/ssl/cacerts\"'",
73+
#"ENGINESDIR='\"_/opt/datadog/embedded/lib/engines-3\"'",
74+
#"MODULESDIR='\"/opt/datadog/embedded/lib/ossl-modules\"'",
7775
]
7876

7977
ARCH_HDRS_COND = {
@@ -87,13 +85,13 @@ cc_binary(
8785
"@platforms//os:linux": LIB_CURLTOOL_SRCS_LINUX_ARM64,
8886
"@platforms//os:macos": LIB_CURLTOOL_SRCS_DARWIN_ARM64,
8987
}),
90-
defines = ["HAVE_CONFIG_H"],
88+
defines = LOCAL_DEFINES,
9189
includes = [
9290
".",
9391
"include",
9492
"lib",
9593
],
96-
copts = LOCAL_DEFINES + [
94+
copts = [
9795
"-I.",
9896
],
9997
dynamic_deps = [
@@ -132,9 +130,9 @@ cc_library(
132130
includes = [
133131
"include",
134132
],
135-
local_defines = [
133+
local_defines = LOCAL_DEFINES + [
136134
"BUILDING_LIBCURL",
137-
"HAVE_CONFIG_H",
135+
# XXXX "HAVE_CONFIG_H",
138136
"NDEBUG",
139137
"CURL_STATICLIB",
140138
] + select({

omnibus/config/software/curl.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
]
6363
configure(*configure_options, env: env)
6464

65-
command "make -j #{workers}", env: env
66-
command "make install"
65+
command "make -j #{workers}", env: env, :live_stream => Omnibus.logger.live_stream(:info)
66+
command "echo === OMNI ENV; printenv | sort ; echo === OMNI CONFIG ; cat lib/curl_config.h", env: env, :live_stream => Omnibus.logger.live_stream(:info)
67+
command "make install", :live_stream => Omnibus.logger.live_stream(:info)
6768
end

0 commit comments

Comments
 (0)