Replace hard-coded gcc and g++ with __cc and __cxx macros
This commit is contained in:
parent
69152c2d1d
commit
b9f1f6282b
@ -15,7 +15,7 @@ Summary: CUPS printing system
|
|||||||
Name: cups
|
Name: cups
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 2.3.1
|
Version: 2.3.1
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: ASL 2.0 with exceptions for GPL2/LGPL2
|
License: ASL 2.0 with exceptions for GPL2/LGPL2
|
||||||
Url: http://www.cups.org/
|
Url: http://www.cups.org/
|
||||||
Source0: https://github.com/apple/cups/releases/download/v%{VERSION}/cups-%{VERSION}-source.tar.gz
|
Source0: https://github.com/apple/cups/releases/download/v%{VERSION}/cups-%{VERSION}-source.tar.gz
|
||||||
@ -323,8 +323,8 @@ autoconf -f -I config-scripts
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
# cups can use different compiler if it is installed, so set to GCC for to be sure
|
# cups can use different compiler if it is installed, so set to GCC for to be sure
|
||||||
export CC=gcc
|
export CC=%{__cc}
|
||||||
export CXX=g++
|
export CXX=%{__cxx}
|
||||||
# add Fedora specific flags to DSOFLAGS
|
# add Fedora specific flags to DSOFLAGS
|
||||||
export DSOFLAGS="$DSOFLAGS -L../cgi-bin -L../filter -L../ppdc -L../scheduler -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro,-z,now -fPIE -pie"
|
export DSOFLAGS="$DSOFLAGS -L../cgi-bin -L../filter -L../ppdc -L../scheduler -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro,-z,now -fPIE -pie"
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -fstack-protector-all -DLDAP_DEPRECATED=1"
|
export CFLAGS="$RPM_OPT_FLAGS -fstack-protector-all -DLDAP_DEPRECATED=1"
|
||||||
@ -710,6 +710,9 @@ rm -f %{cups_serverbin}/backend/smb
|
|||||||
%{_mandir}/man7/ippevepcl.7.gz
|
%{_mandir}/man7/ippevepcl.7.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jan 18 2020 Tom Stellard <tstellar@redhat.com> - 1:2.3.1-4
|
||||||
|
- Replace hard-coded gcc and g++ with __cc and __cxx macros
|
||||||
|
|
||||||
* Wed Jan 15 2020 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.3.1-3
|
* Wed Jan 15 2020 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.3.1-3
|
||||||
- add buildrequires on systemd-rpm-macros
|
- add buildrequires on systemd-rpm-macros
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user