libx86emu/10000-Fix-compilation-errors-caused-by-gcc.patch

27 lines
655 B
Diff

From 85f60235499f9d248ce689881e7ba9181152631a Mon Sep 17 00:00:00 2001
From: sjxur <sjxur@isoftstone.com>
Date: Fri, 21 Apr 2023 11:09:13 +0800
Subject: [PATCH] Fix compilation errors caused by specifying the gcc compiler
in source code
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 93c412b..9cdea44 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ PREFIX := libx86emu-$(VERSION)
MAJOR_VERSION := $(shell $(GIT2LOG) --version VERSION ; cut -d . -f 1 VERSION)
-CC = gcc
+CC ?= gcc
CFLAGS = -g -O2 -fPIC -fvisibility=hidden -fomit-frame-pointer -Wall
LDFLAGS =
--
2.33.0