From 1858c4325b2d5714ebe1d14b9e993b2176fa8efb Mon Sep 17 00:00:00 2001 From: Li Date: Fri, 21 Apr 2023 17:49:27 +0800 Subject: [PATCH] Fix CC compiler support --- libx86emu-fix-cc.patch | 11 +++++++++++ lm_sensors.spec | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 libx86emu-fix-cc.patch diff --git a/libx86emu-fix-cc.patch b/libx86emu-fix-cc.patch new file mode 100644 index 0000000..e29663a --- /dev/null +++ b/libx86emu-fix-cc.patch @@ -0,0 +1,11 @@ +--- a/Makefile 2021-11-19 01:14:15.000000000 +0800 ++++ b/Makefile 2023-04-21 16:29:15.349812381 +0800 +@@ -11,7 +11,7 @@ + + 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 = + diff --git a/lm_sensors.spec b/lm_sensors.spec index 60e64fb..b424cef 100644 --- a/lm_sensors.spec +++ b/lm_sensors.spec @@ -2,7 +2,7 @@ Name: lm_sensors Version: 3.6.0 -Release: 5 +Release: 6 Summary: Linux-monitoring sensors # lib/libsensors.3 is licensed Verbatim # dist-git files are licensed MIT @@ -19,6 +19,7 @@ Source4: lm_sensors-modprobe-r-wrapper Source5: sensord.service Source6: sensord-service-wrapper Source7: lm_sensors.service +Patch0: libx86emu-fix-cc.patch Requires: kmod, systemd-units BuildRequires: kernel-headers >= 2.2.16, bison, libsysfs-devel, flex, gawk @@ -162,6 +163,9 @@ fi %exclude %{_mandir}/man8/sensord.8.gz %changelog +* Fri Apr 21 2023 xqlids@isoftstone.com> - 3.6.0-5 +- fix Fix CC compiler support + * Sat Sep 19 2020 xinghe - 3.6.0-5 - fix uninstall failure -- Gitee