Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
8b8d2dcc
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
接近 2 年 前同步成功
通知
12
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
8b8d2dcc
编写于
10月 23, 2011
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
config: in cross-compile case interrogate cross-compiler, not host, work
around sub-shell limitation.
上级
5fd72260
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
13 addition
and
21 deletion
+13
-21
config
config
+13
-21
未找到文件。
config
浏览文件 @
8b8d2dcc
...
...
@@ -411,25 +411,18 @@ exit 0
# this is where the translation occurs into SSLeay terms
# ---------------------------------------------------------------------------
if
[
-z
"
$GCCVER
"
]
;
then
GCCVER
=
`
(
gcc
-dumpversion
)
2>/dev/null
`
fi
if
[
"
$GCCVER
"
!=
""
]
;
then
# then strip off whatever prefix egcs prepends the number with...
# Hopefully, this will work for any future prefixes as well.
GCCVER
=
`
echo
$GCCVER
|
LC_ALL
=
C
sed
's/^[a-zA-Z]*\-//'
`
# Since gcc 3.1 gcc --version behaviour has changed. gcc -dumpversion
# does give us what we want though, so we use that. We just just the
# major and minor version numbers.
# peak single digit before and after first dot, e.g. 2.95.1 gives 29
GCCVER
=
`
echo
$GCCVER
|
sed
's/\([0-9]\)\.\([0-9]\).*/\1\2/'
`
fi
# Only set CC if not supplied already
if
[
-z
"
$CC
"
]
;
then
# figure out if gcc is available and if so we use it otherwise
# we fallback to whatever cc does on the system
if
[
-z
"
$CROSS_COMPILE$CC
"
]
;
then
GCCVER
=
`
sh
-c
"gcc -dumpversion"
2>/dev/null
`
if
[
"
$GCCVER
"
!=
""
]
;
then
# then strip off whatever prefix egcs prepends the number with...
# Hopefully, this will work for any future prefixes as well.
GCCVER
=
`
echo
$GCCVER
|
LC_ALL
=
C
sed
's/^[a-zA-Z]*\-//'
`
# Since gcc 3.1 gcc --version behaviour has changed. gcc -dumpversion
# does give us what we want though, so we use that. We just just the
# major and minor version numbers.
# peak single digit before and after first dot, e.g. 2.95.1 gives 29
GCCVER
=
`
echo
$GCCVER
|
sed
's/\([0-9]\)\.\([0-9]\).*/\1\2/'
`
CC
=
gcc
else
CC
=
cc
...
...
@@ -851,10 +844,9 @@ if [ -n "$CONFIG_OPTIONS" ]; then
options
=
"
$options
$CONFIG_OPTIONS
"
fi
if
[
-z
"
$CONFIG_SKIP_NOEXECSTACK
"
]
;
then
!
expr
"
$options
"
:
'.*no\-asm'
>
/dev/null
&&
\
(
$CC
-Wa
,--help
-c
-o
/dev/null
-x
assembler /dev/null 2>&1 |
\
grep
\\
--noexecstack
)
2>&1
>
/dev/null
&&
\
if
expr
"
$options
"
:
'.*no\-asm'
>
/dev/null
;
then
:
;
else
sh
-c
"
$CROSS_COMPILE
${
CC
:-
gcc
}
-Wa,--help -c -o /tmp/null.
$$
.o -x assembler /dev/null && rm /tmp/null.
$$
.o"
2>&1 |
\
grep
\\
--noexecstack
>
/dev/null
&&
\
options
=
"
$options
-Wa,--noexecstack"
fi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录