Support specify CC
This commit is contained in:
parent
99660727d3
commit
85780f8203
28
0001-Support-specify-CC.patch
Normal file
28
0001-Support-specify-CC.patch
Normal file
@ -0,0 +1,28 @@
|
||||
From c90782c682df0488d51e245d6413be336b7f6782 Mon Sep 17 00:00:00 2001
|
||||
From: jammyjellyfish <jammyjellyfish255@outlook.com>
|
||||
Date: Wed, 19 Apr 2023 14:46:09 +0800
|
||||
Subject: [PATCH] Support specify CC
|
||||
|
||||
Makefile set CC compiler as gcc, and not reading CC from
|
||||
environment variable. This patch lets Makefile read $CC
|
||||
environment variable and use it as compiler, if exists
|
||||
---
|
||||
Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 752e550..0297cf7 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
PREFIX=/usr/local
|
||||
|
||||
-CC=gcc
|
||||
+CC?=gcc
|
||||
INSTALL=install
|
||||
|
||||
VERSION=2.1.0
|
||||
--
|
||||
2.40.0
|
||||
|
||||
@ -1,12 +1,13 @@
|
||||
Name: tree
|
||||
Version: 2.1.0
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Tree file viewer tool
|
||||
License: GPLv2+
|
||||
URL: http://mama.indstate.edu/users/ice/tree/
|
||||
|
||||
Source0: http://mama.indstate.edu/users/ice/tree/src/%{name}-%{version}.tgz
|
||||
Source1: ftp://mama.indstate.edu/linux/tree/%{name}-%{version}.tgz
|
||||
Patch0: 0001-Support-specify-CC.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
|
||||
@ -45,6 +46,9 @@ install -D -m 644 doc/tree.1 $RPM_BUILD_ROOT%{_mandir}/man1/tree.1
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Wed Apr 19 2023 jammyjellyfish <jammyjellyfish255@outlook.com> - 2.1.0-2
|
||||
- Support specify CC
|
||||
|
||||
* Thu Feb 09 2023 Kunlin Yang <yangkunlin7@huawei.com> - 2.1.0-1
|
||||
- upgrade package from 2.0.4 to 2.1.0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user