Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
d6c76457
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
1 年多 前同步成功
通知
10
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看板
提交
d6c76457
编写于
7月 31, 2007
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Proper support for shared build under MacOS X.
上级
9d35d08a
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
38 addition
and
32 deletion
+38
-32
Configure
Configure
+8
-2
Makefile.shared
Makefile.shared
+1
-3
TABLE
TABLE
+16
-16
apps/Makefile
apps/Makefile
+1
-5
config
config
+11
-1
test/Makefile
test/Makefile
+1
-5
未找到文件。
Configure
浏览文件 @
d6c76457
...
...
@@ -510,8 +510,8 @@ my %table=(
##### MacOS X (a.k.a. Rhapsody or Darwin) setup
"rhapsody-ppc-cc","cc:-O3 -DB_ENDIAN::(unknown):MACOSX_RHAPSODY::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${no_asm}::",
"darwin-ppc-cc","cc:-O3 -DB_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:ppccpuid_osx32.o:osx_ppc32.o osx_ppc32-mont.o:::::sha1-ppc_osx32.o sha256-ppc_osx32.o::::::dlfcn:darwin-shared:-fPIC -fno-common:-dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
"darwin64-ppc-cc","cc:-m64 -O3 -DB_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:ppccpuid_osx64.o:osx_ppc64.o osx_ppc64-mont.o:::::sha1-ppc_osx64.o sha256-ppc_osx64.o sha512-ppc_osx64.o::::::dlfcn:darwin-shared:-fPIC -fno-common:-m64 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
"darwin-ppc-cc","cc:-O3 -DB_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first
%
:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:ppccpuid_osx32.o:osx_ppc32.o osx_ppc32-mont.o:::::sha1-ppc_osx32.o sha256-ppc_osx32.o::::::dlfcn:darwin-shared:-fPIC -fno-common:-dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
"darwin64-ppc-cc","cc:-m64 -O3 -DB_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first
%
:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:ppccpuid_osx64.o:osx_ppc64.o osx_ppc64-mont.o:::::sha1-ppc_osx64.o sha256-ppc_osx64.o sha512-ppc_osx64.o::::::dlfcn:darwin-shared:-fPIC -fno-common:-m64 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
"darwin-i386-cc","cc:-O3 -fomit-frame-pointer -DL_ENDIAN::-D_REENTRANT:MACOSX::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${no_asm}:dlfcn:darwin-shared:-fPIC -fno-common:-dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
"debug-darwin-ppc-cc","cc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG -DB_ENDIAN -g -Wall -O::-D_REENTRANT:MACOSX::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::osx_ppc32.o osx_ppc32-mont.o:::::sha1-ppc_osx32.o::::::dlfcn:darwin-shared:-fPIC:-dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
...
...
@@ -987,6 +987,11 @@ my $shared_extension = $fields[$idx_shared_extension];
my $ranlib = $fields[$idx_ranlib];
my $arflags = $fields[$idx_arflags];
# '%' in $lflags is used to split flags to "pre-" and post-flags
my ($prelflags,$postlflags)=split('%',$lflags);
if (defined($postlflags)) { $lflags=$postlflags; }
else { $lflags=$prelflags; undef $prelflags; }
my $no_shared_warn=0;
my $no_user_cflags=0;
...
...
@@ -1334,6 +1339,7 @@ while (<IN>)
s/^MAKEDEPPROG=.*$/MAKEDEPPROG= $cc/ if $cc eq "gcc";
s/^CFLAG=.*$/CFLAG= $cflags/;
s/^DEPFLAG=.*$/DEPFLAG= $depflags/;
s/^PEX_LIBS=.*$/PEX_LIBS= $prelflags/;
s/^EX_LIBS=.*$/EX_LIBS= $lflags/;
s/^EXE_EXT=.*$/EXE_EXT= $exe_ext/;
s/^CPUID_OBJ=.*$/CPUID_OBJ= $cpuid_obj/;
...
...
Makefile.shared
浏览文件 @
d6c76457
...
...
@@ -103,15 +103,13 @@ LINK_SO= \
LIBDEPS
=
"
$
${
LIBDEPS
:-
$(LIBDEPS)
}
"
;
\
SHAREDCMD
=
"
$
${
SHAREDCMD
:-
$(CC)
}
"
;
\
SHAREDFLAGS
=
"
$
${
SHAREDFLAGS
:-
$(CFLAGS)
$(SHARED_LDFLAGS)
}
"
;
\
$(NM)
-Pg
$$
SHOBJECTS |
grep
' [BDT] '
|
cut
-f1
-d
' '
>
lib
$(LIBNAME)
.exp
;
\
LIBPATH
=
`
for
x
in
$$
LIBDEPS
;
do if
echo
$$
x |
grep
'^ *-L'
>
/dev/null 2>&1
;
then
echo
$$
x |
sed
-e
's/^ *-L//'
;
fi
;
done
|
uniq
`
;
\
LIBPATH
=
`
echo
$$
LIBPATH |
sed
-e
's/ /:/g'
`
;
\
LD_LIBRARY_PATH
=
$$
LIBPATH:
$$
LD_LIBRARY_PATH
\
$
${SHAREDCMD}
$
${SHAREDFLAGS}
\
-o
$$
SHLIB
$$
SHLIB_SOVER
$$
SHLIB_SUFFIX
\
$$
ALLSYMSFLAGS
$$
SHOBJECTS
$$
NOALLSYMSFLAGS
$$
LIBDEPS
\
)
&&
$(SYMLINK_SO)
;
\
(
$(SET_X)
;
rm
-f
lib
$(LIBNAME)
.exp
)
)
&&
$(SYMLINK_SO)
SYMLINK_SO
=
\
if
[
-n
"
$$
INHIBIT_SYMLINKS"
]
;
then
:
;
else
\
...
...
TABLE
浏览文件 @
d6c76457
...
...
@@ -1070,7 +1070,7 @@ $cflags = -O3 -DB_ENDIAN
$unistd =
$thread_cflag = -D_REENTRANT
$sys_id = MACOSX
$lflags = -Wl,-search_paths_first
$lflags = -Wl,-search_paths_first
%
$bn_ops = BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR
$cpuid_obj = ppccpuid_osx32.o
$bn_obj = osx_ppc32.o osx_ppc32-mont.o
...
...
@@ -1098,7 +1098,7 @@ $cflags = -m64 -O3 -DB_ENDIAN
$unistd =
$thread_cflag = -D_REENTRANT
$sys_id = MACOSX
$lflags = -Wl,-search_paths_first
$lflags = -Wl,-search_paths_first
%
$bn_ops = SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR
$cpuid_obj = ppccpuid_osx64.o
$bn_obj = osx_ppc64.o osx_ppc64-mont.o
...
...
@@ -1822,24 +1822,24 @@ $arflags =
*** debug-steve
$cc = gcc
$cflags = -DL_ENDIAN -DREF_CHECK -DCONF_DEBUG -DDEBUG_SAFESTACK -DCRYPTO_MDEBUG_ALL -DPEDANTIC -g -
march=i486 -
pedantic -Wno-long-long -Wall -Werror -Wshadow -pipe
$cflags = -DL_ENDIAN -DREF_CHECK -DCONF_DEBUG -DDEBUG_SAFESTACK -DCRYPTO_MDEBUG_ALL -DPEDANTIC -g -pedantic -Wno-long-long -Wall -Werror -Wshadow -pipe
$unistd =
$thread_cflag = -D_REENTRANT
$sys_id =
$lflags = -rdynamic -ldl
$bn_ops =
BN_LLONG DES_PTR DES_RISC1 DES_UNROLL RC4_INDEX MD2_INT
$cpuid_obj = x86
cpuid-elf
.o
$bn_obj =
bn86-elf.o co86-elf.o mo86-elf
.o
$des_obj =
dx86-elf.o yx86-elf.o
$aes_obj = a
x86-elf
.o
$bf_obj =
bx86-elf.o
$md5_obj = m
x86-elf
.o
$sha1_obj = s
x86-elf.o s512sse2-elf
.o
$cast_obj =
cx86-elf.o
$rc4_obj = r
x86-elf
.o
$rmd160_obj =
rm86-elf.o
$rc5_obj =
r586-elf.o
$wp_obj = wp
_block.o w86mmx-elf
.o
$bn_ops =
SIXTY_FOUR_BIT_LONG RC4_CHUNK BF_PTR2 DES_INT DES_UNROLL
$cpuid_obj = x86
_64cpuid
.o
$bn_obj =
x86_64-gcc.o x86_64-mont
.o
$des_obj =
$aes_obj = a
es-x86_64
.o
$bf_obj =
$md5_obj = m
d5-x86_64
.o
$sha1_obj = s
ha1-x86_64.o sha256-x86_64.o sha512-x86_64
.o
$cast_obj =
$rc4_obj = r
c4-x86_64
.o
$rmd160_obj =
$rc5_obj =
$wp_obj = wp
-x86_64
.o
$dso_scheme = dlfcn
$shared_target= linux-shared
$shared_cflag =
...
...
apps/Makefile
浏览文件 @
d6c76457
...
...
@@ -154,11 +154,7 @@ $(EXE): progs.h $(E_OBJ) $(PROGRAM).o $(DLIBCRYPTO) $(DLIBSSL)
shlib_target
=
;
if
[
-n
"
$(SHARED_LIBS)
"
]
;
then
\
shlib_target
=
"
$(SHLIB_TARGET)
"
;
\
fi
;
\
if
[
"
$
${shlib_target}
"
=
"darwin-shared"
]
;
then
\
LIBRARIES
=
"
$(DLIBSSL)
$(LIBKRB5)
$(DLIBCRYPTO)
"
;
\
else
\
LIBRARIES
=
"
$(LIBSSL)
$(LIBKRB5)
$(LIBCRYPTO)
"
;
\
fi
;
\
$(MAKE)
-f
$(TOP)
/Makefile.shared
-e
\
APPNAME
=
$(EXE)
OBJECTS
=
"
$(PROGRAM)
.o
$(E_OBJ)
"
\
LIBDEPS
=
"
$(PEX_LIBS)
$$
LIBRARIES
$(EX_LIBS)
"
\
...
...
config
浏览文件 @
d6c76457
...
...
@@ -525,7 +525,17 @@ case "$GUESSOS" in
OUT
=
"irix-mips3-
$CC
"
;;
ppc-apple-rhapsody
)
OUT
=
"rhapsody-ppc-cc"
;;
ppc-apple-darwin
*
)
OUT
=
"darwin-ppc-cc"
;;
ppc-apple-darwin
*
)
ISA64
=
`
(
sysctl
-n
hw.optional.64bitops
)
2>/dev/null
`
if
[
"
$ISA64
"
=
"1"
]
;
then
echo
"WARNING! If you wish to build 64-bit library, then you have to"
echo
" invoke './Configure darwin64-ppc-cc' *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
fi
fi
OUT
=
"darwin-ppc-cc"
;;
i386-apple-darwin
*
)
OUT
=
"darwin-i386-cc"
;;
alpha-
*
-linux2
)
ISA
=
`
awk
'/cpu model/{print$4;exit(0);}'
/proc/cpuinfo
`
...
...
test/Makefile
浏览文件 @
d6c76457
...
...
@@ -326,11 +326,7 @@ $(DLIBCRYPTO):
BUILD_CMD
=
shlib_target
=
;
if
[
-n
"
$(SHARED_LIBS)
"
]
;
then
\
shlib_target
=
"
$(SHLIB_TARGET)
"
;
\
fi
;
\
if
[
"
$
${shlib_target}
"
=
"hpux-shared"
-o
"
$
${shlib_target}
"
=
"darwin-shared"
]
;
then
\
LIBRARIES
=
"
$(DLIBSSL)
$(DLIBCRYPTO)
$(LIBKRB5)
"
;
\
else
\
LIBRARIES
=
"
$(LIBSSL)
$(LIBCRYPTO)
$(LIBKRB5)
"
;
\
fi
;
\
$(MAKE)
-f
$(TOP)
/Makefile.shared
-e
\
APPNAME
=
$$
target
$(EXE_EXT)
OBJECTS
=
"
$$
target.o"
\
LIBDEPS
=
"
$(PEX_LIBS)
$$
LIBRARIES
$(EX_LIBS)
"
\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录