Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
190c8c60
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
1 年多 前同步成功
通知
9
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看板
提交
190c8c60
编写于
4月 19, 2015
作者:
B
Ben Laurie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix build on MacOS.
Reviewed-by: Andy Polyakov
上级
8b68b7e9
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
24 addition
and
12 deletion
+24
-12
Configurations/10-main.conf
Configurations/10-main.conf
+1
-8
Configure
Configure
+19
-2
config
config
+4
-2
未找到文件。
Configurations/10-main.conf
浏览文件 @
190c8c60
...
...
@@ -641,14 +641,7 @@
"linux-x86_64-clang"
=> {
inherit_from
=> [
"linux-x86_64"
],
cc
=>
"clang"
,
# TODO(openssl-team): fix problems and investigate if (at least) the
# following warnings can also be enabled:
# -Wconditional-uninitialized, -Wswitch-enum, -Wunused-macros,
# -Wmissing-field-initializers, -Wmissing-variable-declarations,
# -Wincompatible-pointer-types-discards-qualifiers, -Wcast-align,
# -Wunreachable-code -Wunused-parameter -Wlanguage-extension-token
# -Wextended-offsetof
cflags
=>
"-m64 -DL_ENDIAN -Wall -Wextra $clang_disabled_warnings -Qunused-arguments"
,
cflags
=>
"-m64 -DL_ENDIAN -Wall -Wextra -Qunused-arguments"
,
},
"linux-x32"
=> {
inherit_from
=> [
"linux-generic32"
,
asm
(
"x86_64_asm"
) ],
...
...
Configure
浏览文件 @
190c8c60
...
...
@@ -112,7 +112,15 @@ my $usage="Usage: Configure [no-<cipher> ...] [enable-<cipher> ...] [experimenta
my $gcc_devteam_warn = "-Wall -pedantic -DPEDANTIC -Wno-long-long -Wsign-compare -Wmissing-prototypes -Wshadow -Wformat -Wtype-limits -Werror -DCRYPTO_MDEBUG_ALL -DCRYPTO_MDEBUG_ABORT -DREF_CHECK -DDEBUG_UNUSED";
my $clang_disabled_warnings = "-Wno-unused-parameter -Wno-missing-field-initializers -Wno-language-extension-token -Wno-extended-offsetof";
# These are used in addition to $gcc_devteam_warn when the compiler is clang.
# TODO(openssl-team): fix problems and investigate if (at least) the
# following warnings can also be enabled: -Wconditional-uninitialized,
# -Wswitch-enum, -Wunused-macros, -Wmissing-field-initializers,
# -Wmissing-variable-declarations,
# -Wincompatible-pointer-types-discards-qualifiers, -Wcast-align,
# -Wunreachable-code -Wunused-parameter -Wlanguage-extension-token
# -Wextended-offsetof
my $clang_devteam_warn = "-Wno-unused-parameter -Wno-missing-field-initializers -Wno-language-extension-token -Wno-extended-offsetof";
my $strict_warnings = 0;
...
...
@@ -1726,12 +1734,21 @@ if ($shlib_version_number =~ /(^[0-9]*)\.([0-9\.]*)/)
if ($strict_warnings)
{
my $ecc = $cc;
$ecc = "clang" if `$cc --version 2>&1` =~ /clang/;
my $wopt;
die "ERROR --strict-warnings requires gcc or clang" unless ($
cc =~ /gcc$/ or $
cc =~ /clang$/);
die "ERROR --strict-warnings requires gcc or clang" unless ($
ecc =~ /gcc$/ or $e
cc =~ /clang$/);
foreach $wopt (split /\s+/, $gcc_devteam_warn)
{
$cflags .= " $wopt" unless ($cflags =~ /$wopt/)
}
if ($ecc eq "clang")
{
foreach $wopt (split /\s+/, $clang_devteam_warn)
{
$cflags .= " $wopt" unless ($cflags =~ /$wopt/)
}
}
}
open(IN,"<Makefile.org") || die "unable to read Makefile.org:$!\n";
...
...
config
浏览文件 @
190c8c60
...
...
@@ -518,10 +518,12 @@ case "$GUESSOS" in
ISA64
=
`
(
sysctl
-n
hw.optional.x86_64
)
2>/dev/null
`
if
[
"
$ISA64
"
=
"1"
-a
-z
"
$KERNEL_BITS
"
]
;
then
echo
"WARNING! If you wish to build 64-bit library, then you have to"
echo
" invoke './Configure darwin64-x86_64-cc' *manually*."
echo
" invoke './Configure darwin64-x86_64-cc
$options
' *manually*."
if
[
"
$TEST
"
=
"false"
-a
-t
1
]
;
then
echo
" You have about 5 seconds to press Ctrl-C to abort."
(
trap
"stty
`
stty
-g
`
"
2 0
;
stty
-icanon
min 0
time
50
;
read
waste
)
<&1
# The stty technique used elsewhere doesn't work on
# MacOS. At least, right now on this Mac.
sleep
5
fi
fi
if
[
"
$ISA64
"
=
"1"
-a
"
$KERNEL_BITS
"
=
"64"
]
;
then
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录