Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
8f41ff2d
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8f41ff2d
编写于
5月 16, 2016
作者:
R
Richard Levitte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add support for RC / WINDRES env variables
RT#2558 Reviewed-by:
N
Tim Hudson
<
tjh@openssl.org
>
上级
3c01ed68
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
11 addition
and
7 deletion
+11
-7
Configurations/unix-Makefile.tmpl
Configurations/unix-Makefile.tmpl
+4
-3
Configure
Configure
+2
-0
Makefile.shared
Makefile.shared
+5
-4
未找到文件。
Configurations/unix-Makefile.tmpl
浏览文件 @
8f41ff2d
...
...
@@ -169,7 +169,6 @@ LIB_LDFLAGS={- $target{shared_ldflag}." ".$config{shared_ldflag}
# $prefix is not /usr.
. ($config{target} =~ m|^BSD-| && $prefix !~ m|^/usr/.*$|
? " -Wl,-rpath,\$\$(LIBRPATH)" : "") -}
RCFLAGS={- $target{shared_rcflag} -}
DSO_CFLAGS={- $target{shared_cflag} || "" -}
DSO_LDFLAGS=$(LIB_LDFLAGS)
BIN_CFLAGS={- $target{bin_cflags} -}
...
...
@@ -180,6 +179,8 @@ ARFLAGS= {- $target{arflags} -}
AR=$(CROSS_COMPILE){- $target{ar} || "ar" -} $(ARFLAGS) r
RANLIB= {- $target{ranlib} -}
NM= $(CROSS_COMPILE){- $target{nm} || "nm" -}
RCFLAGS={- $target{shared_rcflag} -}
RC= $(CROSS_COMPILE){- $target{rc} || "windres" -}
RM= rm -f
RMDIR= rmdir
TAR= {- $target{tar} || "tar" -}
...
...
@@ -959,9 +960,9 @@ $target: $lib$libext $deps $ordinalsfile
LIBNAME=$libname LIBVERSION=\$(SHLIB_MAJOR).\$(SHLIB_MINOR) \\
LIBCOMPATVERSIONS=';\$(SHLIB_VERSION_HISTORY)' \\
CC='\$(CC)' CFLAGS='\$(CFLAGS) \$(LIB_CFLAGS)' \\
CROSS_COMPILE='\$(CROSS_COMPILE)'
LDFLAGS='\$(LDFLAGS)' \\
LDFLAGS='\$(LDFLAGS)' \\
SHARED_LDFLAGS='\$(LIB_LDFLAGS)' SHLIB_EXT=$shlibext \\
SHARED_RCFLAGS='\$(RCFLAGS)' \\
RC='\$(RC)'
SHARED_RCFLAGS='\$(RCFLAGS)' \\
link_shlib.$shlib_target
EOF
. (windowsdll() ? <<"EOF" : "");
...
...
Configure
浏览文件 @
8f41ff2d
...
...
@@ -915,6 +915,8 @@ $target{ranlib} = $ENV{'RANLIB'} || $target{ranlib} ||
"
\$
(CROSS_COMPILE)ranlib
"
:
"
true
");
$target
{
ar
}
=
$ENV
{'
AR
'}
||
$target
{
ar
}
||
"
ar
";
$target
{
nm
}
=
$ENV
{'
NM
'}
||
$target
{
nm
}
||
"
nm
";
$target
{
rc
}
=
$ENV
{'
RC
'}
||
$ENV
{'
WINDRES
'}
||
$target
{
rc
}
||
"
windres
";
# For cflags, lflags, plib_lflags, ex_libs and defines, add the debug_
# or release_ attributes.
...
...
Makefile.shared
浏览文件 @
8f41ff2d
...
...
@@ -14,6 +14,7 @@ CFLAGS=$(CFLAG)
LDFLAGS
=
$(LDFLAG)
SHARED_LDFLAGS
=
$(SHARED_LDFLAG)
RC
=
windres
# SHARED_RCFLAGS are flags used with windres, i.e. when build for Cygwin
# or Mingw.
SHARED_RCFLAGS
=
$(SHARED_RCFLAG)
...
...
@@ -278,9 +279,9 @@ link_shlib.cygwin:
SHLIB
=
cyg
$(LIBNAME)
;
SHLIB_SOVER
=
-
$(LIBVERSION)
;
SHLIB_SUFFIX
=
.dll
;
\
dll_name
=
$$
SHLIB
$$
SHLIB_SOVER
$$
SHLIB_SUFFIX
;
\
echo
"
$(PERL)
$(SRCDIR)
/util/mkrc.pl
$$
dll_name |"
\
"
$(
CROSS_COMPILE)
windres
$(SHARED_RCFLAGS)
-o rc.o"
;
\
"
$(
RC)
$(SHARED_RCFLAGS)
-o rc.o"
;
\
$(PERL)
$(SRCDIR)
/util/mkrc.pl
$$
dll_name |
\
$(
CROSS_COMPILE)
windres
$(SHARED_RCFLAGS)
-o
rc.o
;
\
$(
RC)
$(SHARED_RCFLAGS)
-o
rc.o
;
\
ALLSYMSFLAGS
=
'-Wl,--whole-archive'
;
\
NOALLSYMSFLAGS
=
'-Wl,--no-whole-archive'
;
\
SHAREDFLAGS
=
"
$(CFLAGS)
$(SHARED_LDFLAGS)
-shared -Wl,--enable-auto-image-base -Wl,-Bsymbolic -Wl,--out-implib,lib
$(LIBNAME)
.dll.a rc.o"
;
\
...
...
@@ -306,9 +307,9 @@ link_shlib.mingw:
|
sed
-e
's|^\(LIBRARY *\)
$(LIBNAME)
32|\1'
"
$$
dll_name"
'|'
\
>
$(LIBNAME)
.def
;
\
echo
"
$(PERL)
$(SRCDIR)
/util/mkrc.pl
$$
dll_name |"
\
"
$(
CROSS_COMPILE)
windres
$(SHARED_RCFLAGS)
-o rc.o"
;
\
"
$(
RC)
$(SHARED_RCFLAGS)
-o rc.o"
;
\
$(PERL)
$(SRCDIR)
/util/mkrc.pl
$$
dll_name |
\
$(
CROSS_COMPILE)
windres
$(SHARED_RCFLAGS)
-o
rc.o
;
\
$(
RC)
$(SHARED_RCFLAGS)
-o
rc.o
;
\
ALLSYMSFLAGS
=
'-Wl,--whole-archive'
;
\
NOALLSYMSFLAGS
=
'-Wl,--no-whole-archive'
;
\
SHAREDFLAGS
=
"
$(CFLAGS)
$(SHARED_LDFLAGS)
-shared
$$
base -Wl,-Bsymbolic -Wl,--out-implib,lib
$(LIBNAME)
.dll.a
$(LIBNAME)
.def rc.o"
;
\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录