Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
OpenCorePKG_MOD
提交
75e19f14
O
OpenCorePKG_MOD
项目概览
btwise
/
OpenCorePKG_MOD
通知
26
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
OpenCorePKG_MOD
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
75e19f14
编写于
4月 02, 2024
作者:
S
Savva Mitrofanov
提交者:
vit9696
4月 06, 2024
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
User: Drop ia32 support. Support universal binaries for utilities
上级
a7a878f2
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
20 deletion
+16
-20
User/Makefile
User/Makefile
+2
-7
Utilities/BaseTools/Makefile
Utilities/BaseTools/Makefile
+1
-1
Utilities/RsaTool/Makefile
Utilities/RsaTool/Makefile
+10
-2
Utilities/RsaTool/build_libressl.sh
Utilities/RsaTool/build_libressl.sh
+3
-10
未找到文件。
User/Makefile
浏览文件 @
75e19f14
...
...
@@ -80,13 +80,8 @@ endif
ifeq
($(DIST),Darwin)
ifneq
($(FUZZ),1)
ifeq
($(UDK_ARCH),Ia32)
CFLAGS
+=
-mmacosx-version-min
=
10.6
--target
=
i386-apple-darwin
LDFLAGS
+=
-mmacosx-version-min
=
10.6
--target
=
i386-apple-darwin
else
CFLAGS
+=
-mmacosx-version-min
=
10.6
--target
=
x86_64-apple-darwin
LDFLAGS
+=
-mmacosx-version-min
=
10.6
--target
=
x86_64-apple-darwin
endif
CFLAGS
+=
-mmacosx-version-min
=
10.9
-arch
x86_64
-arch
arm64
LDFLAGS
+=
-mmacosx-version-min
=
10.9
-arch
x86_64
-arch
arm64
endif
endif
...
...
Utilities/BaseTools/Makefile
浏览文件 @
75e19f14
...
...
@@ -5,7 +5,7 @@ RM ?= /bin/rm
DIST
?=
$(
shell
uname
)
ifeq
($(DIST),Darwin)
CFLAGS
+=
-mmacosx-version-min
=
10.6
CFLAGS
+=
-arch
x86_64
-arch
arm64
-mmacosx-version-min
=
10.9
endif
BINDIR
=
bin.
$(DIST)
...
...
Utilities/RsaTool/Makefile
浏览文件 @
75e19f14
...
...
@@ -16,6 +16,14 @@ libressl/lib/libcrypto.a:
$(OUT_DIR)/$(PROJECT).o
:
libressl/lib/libcrypto.a
endif
CFLAGS
+=
-Ilibressl
/include
-I
/usr/local/opt/openssl/include
-I
/opt/local/include
-Wno-deprecated-declarations
LDFLAGS
+=
-Llibressl
/lib
-L
/usr/local/opt/openssl/lib
-L
/opt/local/lib
ifeq
($(DIST),Darwin)
ifeq
($(shell uname -p),arm)
OPENSSL_PATH
=
/opt/homebrew/opt/openssl
else
OPENSSL_PATH
=
/usr/local/opt/openssl
endif
endif
CFLAGS
+=
-Ilibressl
/include
-I
$(OPENSSL_PATH)
/include
-I
/opt/local/include
-Wno-deprecated-declarations
LDFLAGS
+=
-Llibressl
/lib
-L
$(OPENSSL_PATH)
/lib
-L
/opt/local/lib
LDLIBS
+=
-lcrypto
Utilities/RsaTool/build_libressl.sh
浏览文件 @
75e19f14
...
...
@@ -11,8 +11,8 @@ cd "$SRC_DIR" || exit 1
OUTPUT_PATH
=
"
$(
pwd
)
/libressl"
BUILD_DIR
=
"
$(
pwd
)
/tmp/
${
LIBRESSL_NAME
}
/build"
export
CFLAGS
=
"-
mmacosx-version-min=10.6
-Wno-unguarded-availability-new"
export
LDFLAGS
=
"-
mmacosx-version-min=10.6
"
export
CFLAGS
=
"-
arch x86_64 -arch arm64 -mmacosx-version-min=10.9
-Wno-unguarded-availability-new"
export
LDFLAGS
=
"-
arch x86_64 -arch arm64 -mmacosx-version-min=10.9
"
abort
()
{
echo
"ERROR:
$1
!"
...
...
@@ -69,14 +69,7 @@ echo "Downloading LibreSSL ${LIBRESSL_VERSION}..."
cd
"
${
LIBRESSL_NAME
}
"
||
abort
"Failed to cd to
${
LIBRESSL_NAME
}
with code
$?
"
if
[
"
$(
${
ARCH
}
)
"
=
"arm64"
]
;
then
# If we are building on arm64 (Apple Silicon), these extra options are required to ensure x86_64 builds.
EXTRA_OPTS
=(
--host
=
arm-apple-darwin
--build
=
x86_64-apple-darwin
)
CFLAGS+
=
" --target=x86_64-apple-darwin"
LDFLAGS+
=
" --target=x86_64-apple-darwin"
else
EXTRA_OPTS
=()
fi
EXTRA_OPTS
=()
# Monkeypatch to disable strtonum for <11.0 support
"
${
SED
}
"
-i
''
-E
's/strsep strtonum/strsep/g'
configure
||
abort
"Failed to monkeypatch strtonum in LibreSSL with code
$?
"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录