Support specify CC
This commit is contained in:
parent
b3768d0add
commit
335e36dde0
12
support-specify-cc.patch
Normal file
12
support-specify-cc.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up ustr-1.0.4/Makefile.orig2 ustr-1.0.4/Makefile
|
||||||
|
--- ustr-1.0.4/Makefile.orig2 2023-04-17 17:41:55.289194228 +0800
|
||||||
|
+++ ustr-1.0.4/Makefile 2023-04-17 17:41:58.941200484 +0800
|
||||||
|
@@ -28,7 +28,7 @@ MBINDIR=$(libexecdir)/ustr-$(VERS_FULL)
|
||||||
|
###############################################################################
|
||||||
|
HIDE=@
|
||||||
|
|
||||||
|
-CC = cc
|
||||||
|
+CC ?= cc
|
||||||
|
AR = ar
|
||||||
|
RANLIB = ranlib
|
||||||
|
LDCONFIG = /sbin/ldconfig
|
||||||
@ -1,12 +1,13 @@
|
|||||||
Name: ustr
|
Name: ustr
|
||||||
Version: 1.0.4
|
Version: 1.0.4
|
||||||
Release: 29
|
Release: 30
|
||||||
Summary: Micro String API for C
|
Summary: Micro String API for C
|
||||||
License: MIT or LGPLv2+ or BSD
|
License: MIT or LGPLv2+ or BSD
|
||||||
URL: http://www.and.org/ustr/
|
URL: http://www.and.org/ustr/
|
||||||
Source0: http://www.and.org/ustr/%{version}/%{name}-%{version}.tar.bz2
|
Source0: http://www.and.org/ustr/%{version}/%{name}-%{version}.tar.bz2
|
||||||
#Acknowledge Patch0 from Fedora
|
#Acknowledge Patch0 from Fedora
|
||||||
Patch0: c99-inline.patch
|
Patch0: c99-inline.patch
|
||||||
|
Patch1: support-specify-cc.patch
|
||||||
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
@ -102,6 +103,9 @@ make $@ install-multilib-linux prefix=%{_prefix} \
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 17 2023 jammyjellyfish <jammyjellyfish255@outlook.com> - 1.0.4-30
|
||||||
|
- Support specify CC
|
||||||
|
|
||||||
* Fri Jun 4 2021 zoulin<zoulin13@huawei.com> - 1.0.4-29
|
* Fri Jun 4 2021 zoulin<zoulin13@huawei.com> - 1.0.4-29
|
||||||
- Add gcc and make to BuildRequires to use gcc command
|
- Add gcc and make to BuildRequires to use gcc command
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user