Open
支持指定 CC 编译 #27
AtomGit-BotAdd on  Apr 16, 2023
A
AtomGit-Bot
Apr 16, 2023 Create

源代码包中的 Makefile 将构建时使用的 CC 指定为 gcc

CC := $(CROSS_COMPILE)gcc

可以将 = 修改为 ?=,即存在环境变量 CC 时,使用环境变量指定的 CC 进行构建

CC ?= $(CROSS_COMPILE)gcc

尝试进行修改后,在环境变量指定 CC=clang 构建成功

likedislike
AAtomGit-Bot
Apr 16, 2023 创建了需求
openeuler-ci-bot
openeuler-ci-botCollaborators
Apr 16, 2023 Comments:

Hi jammyjellyfish, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: sig-security-facility, and any of the maintainers: @robertosassu , @zhujianwei001 , @mailofzxf , @wucaijun2001 , @gwei3 , @HuaxinLuGitee

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Apr 16, 2023 添加了   sig/sig-security-fac 标签
AAtomGit-Bot
Apr 16, 2023 关联了src-openEuler/libcap Pull Request !39
AAtomGit-Bot
Apr 16, 2023 修改了描述