代码拉取完成,页面将自动刷新
From aa8e7871ddf3f852f79161f83a8f51f1fa186e42 Mon Sep 17 00:00:00 2001
From: sjxur <sjxur@isoftstone.com>
Date: Mon, 24 Apr 2023 17:26:43 +0800
Subject: [PATCH] fix CC compiler error
---
SConstruct | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/SConstruct b/SConstruct
index 4358a23..01aa8f7 100644
--- a/SConstruct
+++ b/SConstruct
@@ -72,6 +72,12 @@ else:
default_libdir='$PREFIX/lib'
default_prefix='/usr/local'
+cc_key = os.getenv('CC', 'null')
+if cc_key == 'null':
+ os_cc='gcc'
+else:
+ os_cc = os.environ["CC"]
+
opts = Variables(files=[SAVED_CONFIG])
opts.AddVariables(
PathVariable('PREFIX',
@@ -108,7 +114,7 @@ opts.AddVariables(
BoolVariable('APR_STATIC',
"Enable using a static compiled APR",
False),
- RawListVariable('CC', "Command name or path of the C compiler", None),
+ RawListVariable('CC', "Command name or path of the C compiler", os_cc),
RawListVariable('CFLAGS', "Extra flags for the C compiler (space-separated)",
None),
RawListVariable('LIBS', "Extra libraries passed to the linker, "
--
2.33.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。