Explorar el Código

bugfix with_binutils dynamic value lookup

Ralf S. Engelschall hace 23 años
padre
commit
cee06da1db
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      gcc/gcc.spec

+ 2 - 2
gcc/gcc.spec

@@ -36,7 +36,7 @@
 %define       with_optimize  yes
 %endif
 %ifndef       with_binutils
-%define       with_binutils  %(sh %{SOURCE gcc.sh} require-binutils %{l_target})
+%define       with_binutils  %(if [ -f %{SOURCE gcc.sh} ]; then sh %{SOURCE gcc.sh} require-binutils %{l_target}; else echo "no"; fi)
 %endif
 
 #   package information
@@ -49,7 +49,7 @@ Distribution: OpenPKG [REL]
 Group:        Language
 License:      GPL
 Version:      %{V_short}
-Release:      20020808
+Release:      20020809
 
 #   list of sources
 Source0:      ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{V_long}/gcc-%{V_long}.tar.bz2