#13 spec: Remove $CC and $CXX assignments
Opened 3 years ago by tbaeder. Modified 3 years ago
rpms/ tbaeder/cups rawhide  into  rawhide

file modified
+5 -5
@@ -17,7 +17,7 @@ 

  Name: cups

  Epoch: 1

  Version: 2.3.3%{OP_VER}

- Release: 7%{?dist}

+ Release: 8%{?dist}

  License: ASL 2.0

  Url: https://openprinting.github.io/cups/

  # Apple stopped uploading the new versions into github, use OpenPrinting fork
@@ -319,11 +319,8 @@ 

  autoconf -f -I config-scripts

  

  %build

- # cups can use different compiler if it is installed, so set to GCC for to be sure

- export CC=%{__cc}

- export CXX=%{__cxx}

  # 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 %{_lto_cflags}"

  export CFLAGS="$RPM_OPT_FLAGS -fstack-protector-all -DLDAP_DEPRECATED=1"

  # --enable-debug to avoid stripping binaries

  %configure --with-docdir=%{_datadir}/%{name}/www --enable-debug \
@@ -648,6 +645,9 @@ 

  %{_mandir}/man7/ippeveps.7.gz

  

  %changelog

+ * Fri May 14 2021 Timm Bäder <tbaeder@redhat.com> - 1:2.3.3op2-8

+ - Remove $CC and $CXX assignments

+ 

  * Thu May 13 2021 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.3.3op2-7

  - 1960170 - PreserveJobHistory/JobFiles aren't applied after the first cupsd restart right after successful print

  

They are already set by the %configure macro to those exact values.

1 new commit added

  • spec: Append %{lto_cflags} to $DSOFLAGS
3 years ago
Metadata